ImageGear Professional v18.2 > API Reference Guide > Processing Component API Reference > Processing Component Objects > IGProcessingCtl Control > IGProcessingCtl Methods > ConvertToColorSpaceWithMatrix Method |
Converts image to 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 dimension of the conversionMatrix. Second dimension of conversionMatrix should be equal to number of channels in the source image.
Currently only RGB is supported as the destination color space.
ConvertToColorSpaceWithMatrix(
ByVal pPage As IGPage,
newColorSpace As enumIGColorSpaces,
conversionMatrix As IGDoubleMatrix
);
Name | Description |
---|---|
pPage | Reference to IGPage object to which the conversion is applied. |
newColorSpace | Color space to which to convert. |
conversionMatrix | Conversion matrix. |