ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > ConvertColorSpace Method : ConvertColorSpace(ImGearRasterPage,ImGearColorSpace,Double[,]) Method |
'Declaration Public Overloads Shared Sub ConvertColorSpace( _ ByVal page As ImGearRasterPage, _ ByVal newColorSpace As ImGearColorSpace, _ ByVal conversionMatrix(,) As Double _ )
'Usage Dim page As ImGearRasterPage Dim newColorSpace As ImGearColorSpace Dim conversionMatrix() As Double ImGearRasterProcessing.ConvertColorSpace(page, newColorSpace, conversionMatrix)
public static void ConvertColorSpace( ImGearRasterPage page, ImGearColorSpace newColorSpace, double[,] conversionMatrix )
public: static void ConvertColorSpace( ImGearRasterPage* page, ImGearColorSpace newColorSpace, double[,]* conversionMatrix )
public: static void ConvertColorSpace( ImGearRasterPage^ page, ImGearColorSpace newColorSpace, array<double>^ conversionMatrix )
Converts an image to a new color space using a conversion matrix. Destination pixels are calculated as Dst = M * Src, where M is conversion matrix. Number of channels after conversion will be equal to first of the conversionMatrix. Second dimension of conversionMatrix should be equal to number of channels in the source page.
Note: ImageGear provides this method for color reconstruction of Digital Camera Raw images.