drawImage() private method

private drawImage ( Microsoft.Graphics.Canvas.CanvasBitmap canvasBitmap, int x, int y ) : void
canvasBitmap Microsoft.Graphics.Canvas.CanvasBitmap
x int
y int
return void
コード例 #1
0
 public override void execute(WindowsGraphics underlying)
 {
     underlying.setAlpha(0xff);
     //underlying.setColor(0xff0000);
     if (w <= 0 || h <= 0)
     {
         //underlying.drawRect(x, y, (int)canvasBitmap.SizeInPixels.Width, (int)canvasBitmap.SizeInPixels.Height);
         underlying.drawImage(canvasBitmap, x, y);
     }
     else
     {
         //underlying.drawRect(x, y, w, h);
         underlying.drawImage(canvasBitmap, x, y, w, h);
     }
 }
コード例 #2
0
 public override void execute(WindowsGraphics underlying)
 {
     underlying.setAlpha(0xff);
     //underlying.setColor(0xff0000);
     if (w <= 0 || h <= 0)
     {
         //underlying.drawRect(x, y, (int)canvasBitmap.SizeInPixels.Width, (int)canvasBitmap.SizeInPixels.Height);
         underlying.drawImage(canvasBitmap, x, y);
     }
     else
     {
         //underlying.drawRect(x, y, w, h);
         underlying.drawImage(canvasBitmap, x, y, w, h);
     }
 }