RawColor.RawColor

RawColor(ColorComponent[])

Initializes a new instance of the RawColor class.

public RawColor(ColorComponent[] components)
ParameterTypeDescription
componentsColorComponent[]The custom color components.

See Also


RawColor(PixelDataFormat, short)

Initializes a new instance of the RawColor class from pixel data format using predefined color modes

public RawColor(PixelDataFormat pixelDataFormat, short colorMode = 0)
ParameterTypeDescription
pixelDataFormatPixelDataFormatThe pixel data format.
colorModeInt16Mode for the color to follow.

Exceptions

exceptioncondition
ArgumentExceptionChannels count differs from PixelFormat, index of channels can not be obtained. Please create RawColor with Components’ Array argument

See Also