Table of Contents

Method Draw

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

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

source ImageBuffer

The source image to draw. Its full width and height are copied.

dstX int

X coordinate in this image where the top-left corner of source will be placed. Negative values and out-of-bounds regions are clipped automatically.

dstY int

Y coordinate in this image where the top-left corner of source will 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 source is null.

ArgumentException

Thrown if source has a different pixel format than this image.

Share