public static Graphics DrawPng(this Graphics gr, IImageWrapper pngImage, Rectangle destRect) { var hDc = gr.GetHdc(); pngImage.Draw(hDc, destRect, new Rectangle(0, 0, pngImage.Size.Width, pngImage.Size.Height)); gr.ReleaseHdc(hDc); return gr; }
public IDrawingGraphics DrawAlphaImage(IImageWrapper image, System.Drawing.Rectangle destRect, System.Drawing.Rectangle sourceRect) { throw new NotImplementedException(); }
public IDrawingGraphics DrawAlphaImage(IImageWrapper image, System.Drawing.Rectangle r) { var destScaledRect = this.CalculateRect(r); if (image != null) { this.Graphics.DrawPng(image, destScaledRect); } this.state.CurrentX = r.Right; this.ValidateExtends(0, destScaledRect.Bottom); return this; }
public IDrawingGraphics DrawAlphaImage(IImageWrapper image, int x1, int y1, int width, int height) { return this.DrawAlphaImage(image, new Rectangle(x1, y1, width, height)); }
public IDrawingGraphics DrawAlphaImage(IImageWrapper image, int x, int y) { throw new NotImplementedException(); }
public TransparentImageElement(IImageWrapper image) { this.image = image; this.Size = image.Size; }