Skip to content

Instantly share code, notes, and snippets.

@phrohdoh
Created June 18, 2014 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phrohdoh/a525bcfb102f89cb5884 to your computer and use it in GitHub Desktop.
Save phrohdoh/a525bcfb102f89cb5884 to your computer and use it in GitHub Desktop.
var drawable = DrawableArea(image);
drawable.Invalidate();
Drawable DrawableArea(Bitmap image)
{
var ret = new Drawable();
ret.Paint += (sender, e) =>
{
e.Graphics.DrawImage(image, ret.Location.X, ret.Location.Y);
};
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment