Converts page to a new color space, using the specified background color for images that contain Alpha
channel, or allowing to skip pixel data conversion.
Syntax
'Declaration
Public Overloads Shared Sub ConvertColorSpace( _
ByVal As ImGearRasterPage, _
ByVal As ImGearColorSpace, _
ByVal As Boolean, _
ByVal As ImGearPixel _
)
'Usage
Dim page As ImGearRasterPage
Dim newColorSpace As ImGearColorSpace
Dim doNotScalePixels As Boolean
Dim backgroundColor As ImGearPixel
ImGearRasterProcessing.ConvertColorSpace(page, newColorSpace, doNotScalePixels, backgroundColor)
public static void ConvertColorSpace(
ImGearRasterPage ,
ImGearColorSpace ,
bool ,
ImGearPixel
)
public: static void ConvertColorSpace(
ImGearRasterPage* ,
ImGearColorSpace ,
bool ,
ImGearPixel*
)
public:
static void ConvertColorSpace(
ImGearRasterPage^ ,
ImGearColorSpace ,
bool ,
ImGearPixel^
)
Parameters
- page
- Image to change color space.
- newColorSpace
- New color space.
- doNotScalePixels
- Flag indicating whether to change pixel values according to the new color space.
- backgroundColor
- Background to composite the image over when removing alpha channel.
See Also