Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public IDrawingGraphics DrawAlphaImage(IImageWrapper image, System.Drawing.Rectangle destRect, System.Drawing.Rectangle sourceRect)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public IDrawingGraphics DrawAlphaImage(IImageWrapper image, int x1, int y1, int width, int height)
 {
     return this.DrawAlphaImage(image, new Rectangle(x1, y1, width, height));
 }
Ejemplo n.º 5
0
 public IDrawingGraphics DrawAlphaImage(IImageWrapper image, int x, int y)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 public TransparentImageElement(IImageWrapper image)
 {
     this.image = image;
     this.Size = image.Size;
 }