Cover.Draw C# (CSharp) Méthode

Draw() public méthode

public Draw ( DrawEvent devent ) : void
devent DrawEvent
Résultat 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

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