Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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