ImageGear for .NET
ConvertPixelFormat(ImGearPixel,ImGearColorSpace,Int32[],ImGearRGBQuad[],ImGearPage) Method
See Also  Send Feedback
ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > ConvertPixelFormat Method : ConvertPixelFormat(ImGearPixel,ImGearColorSpace,Int32[],ImGearRGBQuad[],ImGearPage) Method




pixel
Pixel to convert to the new format.
sourceColorSpace
Source colorspace of the pixel.
sourceChannelDepths
Source channel depths of the pixel. Length of the channel depths array should correspond to the srcColorSpace parameter.
sourcePalette
Source palette used by the pixel, if its colorspace is Indexed, or null otherwise.
pageToConvertFormatTo
Page whose colorspace, channel depths, and palette will be used for destination format when converting the pixel.

Glossary Item Box

Converts a single pixel to color space and channel depths of the specified ImageGear.Core.ImGearPage class object.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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 channel depths array should correspond to the srcColorSpace parameter.
sourcePalette
Source palette used by the pixel, if its colorspace is Indexed, or null otherwise.
pageToConvertFormatTo
Page whose colorspace, channel depths, and palette will be used for destination format when converting the pixel.

Remarks

Note: Using this method in a cycle for large array of pixels could be inefficient. Consider creating a temporary ImageGear.Core.ImGearPage class object and converting its colorspace and channel depths in this case.

See Also

©2013. Accusoft Corporation. All Rights Reserved.