Converts a single pixel to new color space and channel depths.
Syntax
'Declaration
Public Overloads Shared Sub ConvertPixelFormat( _
ByVal As ImGearPixel, _
ByVal As ImGearColorSpace, _
ByVal () As Integer, _
ByVal () As ImGearRGBQuad, _
ByVal As ImGearColorSpace, _
ByVal () As Integer, _
ByVal () As ImGearRGBQuad _
)
'Usage
Dim pixel As ImGearPixel
Dim sourceColorSpace As ImGearColorSpace
Dim sourceChannelDepths() As Integer
Dim sourcePalette() As ImGearRGBQuad
Dim destinationColorSpace As ImGearColorSpace
Dim destinationChannelDepths() As Integer
Dim destinationPalette() As ImGearRGBQuad
ImGearRasterProcessing.ConvertPixelFormat(pixel, sourceColorSpace, sourceChannelDepths, sourcePalette, destinationColorSpace, destinationChannelDepths, destinationPalette)
Parameters
- pixel
- Pixel to convert to the new format.
- sourceColorSpace
- Source colorspace of the pixel.
- sourceChannelDepths
- Source channel depths of the pixel. Length of the array should
correspond to the srcColorSpace parameter.
- sourcePalette
- Source palette used by the pixel, if its colorspace is Indexed, or null otherwise.
- destinationColorSpace
- Colorspace to convert the pixel to.
- destinationChannelDepths
- New channel depths for the pixel. Length of the array should
correspond to the dstColorSpace parameter.
- destinationPalette
- Destination palette for the pixel, if destination colorspace is Indexed, or null otherwise.
See Also