ImageGearJava Project > com.accusoft.imagegear.processing Package > ImGearRasterProcessing Class > convertPixelFormat Method : convertPixelFormat(ImGearPixel,ImGearColorSpace,int[],ImGearRGBQuad[],ImGearColorSpace,int[],ImGearRGBQuad[]) Method |
Note: Using this function in a cycle for a large array of pixels could be inefficient. Consider creating a temporary com.accusoft.imagegear.core.ImGearPage class and converting its colorspace and channel depths in this case.
public static void convertPixelFormat( ImGearPixel pixel, ImGearColorSpace sourceColorSpace, int[] sourceChannelDepths, ImGearRGBQuad[] sourcePalette, ImGearColorSpace destinationColorSpace, int[] destinationChannelDepths, ImGearRGBQuad[] destinationPalette ) |
Note: Using this function in a cycle for a large array of pixels could be inefficient. Consider creating a temporary com.accusoft.imagegear.core.ImGearPage class and converting its colorspace and channel depths in this case.