Esempio n. 1
0
 /// <summary>Draw the image in the indicated window, using the indicated graphics context.</summary>
 /// <param name="window">The window to draw the pitmap on.<see cref="System.IntPtr"/></param>
 /// <param name="gc">The crapchics context to use for drawing.<see cref="System.IntPtr"/></param>
 /// <param name="destX">The x coordinate, which is relative to the origin of the window and is the coordinate of the subimage.<see cref="TInt"/></param>
 /// <param name="destY">The y coordinate, which is relative to the origin of the window and is the coordinate of the subimage.<see cref="TInt"/></param>
 public void Draw(IntPtr window, IntPtr gc, TInt destX, TInt destY)
 {
     X11lib.XCopyArea(_imageSurface.Display, _imageSurface.Drawable, window, gc,
                      (X11.TInt) 0, (X11.TInt) 0, (X11.TUint)_size.Width, (X11.TUint)_size.Height, destX, destY);
 }