Created
February 27, 2013 04:36
-
-
Save cwensley/5045112 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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