ImageGear .NET - Updated
ConvertColorSpace(ImGearRasterPage,ImGearColorSpace,Double[,]) Method




ImageGear23.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > ConvertColorSpace Method : ConvertColorSpace(ImGearRasterPage,ImGearColorSpace,Double[,]) Method
Image to change color space.
New color space.
Conversion matrix.
Converts page to a new color space using the specified matrix.
Syntax
'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
) 

Parameters

page
Image to change color space.
newColorSpace
New color space.
conversionMatrix
Conversion matrix.
Remarks

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.

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List
ImGearRasterPage Class
ImGearColorSpace Structure
ImGearCameraRawProcessing Class
ImGearWhiteBalance Class