PattResourceData.SetPattern

PattResourceData.SetPattern method

Sets the pattern pixel buffer and target size, updates Width / Height, and stores the data for saving using the default compression mode (0).

public void SetPattern(int[] pixels, Rectangle bounds)
ParameterTypeDescription
pixelsInt32[]32-bit pixels in 0xAARRGGBB format.
boundsRectanglePixel bounds of the pattern.

Exceptions

exceptioncondition
PsdImageArgumentExceptionPixels array length must be equal to bounds area.

See Also