Cover.Draw C# (CSharp) Method

Draw() public method

public Draw ( DrawEvent devent ) : void
devent DrawEvent
return void
    public override void Draw(DrawEvent devent)
	{
		// Draw a portion of the source bitmap
        //devent.GraphPort.PixmapShardBlt(SourcePixelBuffer, SourceBoundary, SourceFrame);
        //Console.WriteLine("Boundary: {0}   Frame: {1}", SourceBoundary.ToString(), SourceFrame.ToString());
        devent.GraphPort.AlphaBlend(SourceFrame.X, SourceFrame.Y, SourceFrame.Width, SourceFrame.Height,
            SourcePixelBuffer,
            SourceBoundary.X, SourceBoundary.Y, SourceBoundary.Width, SourceBoundary.Height,
            255);
    }
    #endregion

Usage Example

Example #1
0
 public override void Draw()
 {
     BackGround.DrawPercentage(Percentage);
     Cover.Draw();
     base.Draw();
 }