Table of Contents

Constructor DecodedRasterImage

Namespace
DocWright.Core.Imaging
Assembly
DocWright.Core.dll

DecodedRasterImage(int, int, int, byte[], byte[]?)

Initializes a decoded image.

public DecodedRasterImage(int width, int height, int channels, byte[] colorData, byte[]? alphaData)

Parameters

width int

Width in pixels.

height int

Height in pixels.

channels int

Colour samples per pixel: 1 (gray), 3 (RGB) or 4 (CMYK).

colorData byte[]

Interleaved colour samples, channels bytes per pixel.

alphaData byte[]

One alpha byte per pixel, or null when the image is opaque.

Exceptions

ArgumentNullException

colorData is null.

ArgumentOutOfRangeException

A dimension or the channel count is invalid.