Skip to content

Instantly share code, notes, and snippets.

@cwensley
Created February 27, 2013 04:36
Show Gist options
  • Save cwensley/5045112 to your computer and use it in GitHub Desktop.
Save cwensley/5045112 to your computer and use it in GitHub Desktop.
class MyImageLabel : Drawable {
Image image;
Font font = Fonts.Sans (10);
public string Text { get; set; }
public override void OnPaint (PaintEventArgs e)
{
e.Graphics.DrawImage (image, 0, 0);
e.Graphics.DrawText (font, 0, 0, Text)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment