// Constructor. public DrawingTextureBrush(IToolkit toolkit, TextureBrush properties, IToolkitImage image, RectangleF dstRect, ImageAttributes imageAttr) : base(toolkit, Color.Black) { this.properties = properties; this.image = image as DrawingImage; this.dstRect = dstRect; this.imageAttr = imageAttr; }
// Constructor. public DrawingTextureBrush(TextureBrush properties, DrawingImage image, RectangleF dstRect, ImageAttributes imageAttr) { this.properties = properties; this.image = image; this.dstRect = dstRect; this.imageAttr = imageAttr; }
// Dispose of this brush. public void Dispose() { image = null; }
// Draw a bitmap-based glyph to a "Graphics" object. "bits" must be // in the form of an xbm bitmap. public override void DrawGlyph(int x, int y, byte[] xbmBits, int bitsWidth, int bitsHeight, System.Drawing.Color color) { DrawingImage.DrawGlyph(hdc, x, y, xbmBits, bitsWidth, bitsHeight, color); }