Method Draw
Draw(ImageBuffer, int, int)
Copies the entire source image onto this image at the
specified destination coordinates. Both images must share the same pixel format.
public void Draw(ImageBuffer source, int dstX, int dstY)
Parameters
sourceImageBufferThe source image to draw. Its full width and height are copied.
dstXintX coordinate in this image where the top-left corner of
sourcewill be placed. Negative values and out-of-bounds regions are clipped automatically.dstYintY coordinate in this image where the top-left corner of
sourcewill be placed. Negative values and out-of-bounds regions are clipped automatically.
Remarks
This is equivalent to calling DrawRegion(ImageBuffer, int, int, int, int, int, int) with the full source rectangle.
Exceptions
- ArgumentNullException
Thrown if
sourceisnull.- ArgumentException
Thrown if
sourcehas a different pixel format than this image.