Beispiel #1
0
 /// <summary>
 /// Renders to.
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="x">The x.</param>
 /// <param name="y">The y.</param>
 public void RenderTo(GDISurface target, int x, int y)
 {
     RenderTo(target.hDC, x, y);
 }
Beispiel #2
0
 /// <summary>
 /// Renders to.
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="SourceX">The source x.</param>
 /// <param name="SourceY">The source y.</param>
 /// <param name="Width">The width.</param>
 /// <param name="Height">The height.</param>
 /// <param name="DestX">The dest x.</param>
 /// <param name="DestY">The dest y.</param>
 public void RenderTo(GDISurface target, int SourceX, int SourceY, int Width, int Height, int DestX, int DestY)
 {
     NativeGdi32Api.BitBlt(target.hDC, DestX, DestY, Width, Height, this.hDC, SourceX, SourceY, (int)GDIRop.SrcCopy);
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GDISurface"/> class.
 /// </summary>
 /// <param name="width">The width.</param>
 /// <param name="height">The height.</param>
 /// <param name="surface">The surface.</param>
 public GDISurface(int width, int height, GDISurface surface)
 {
     Init(width, height, surface.hDC);
     Create();
 }