Convert the input image to RGB.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
Parameters
- img
- Type: Stemmer.CvbImage
Input image. - assumedColorModel
- Type: Stemmer.CvbColorModel
In cases where the color model of the input image is not known (indicated by the value RGBGuess), the source image's color model should be assumed to be the one provided in assumedColorModel.
Return Value
Type: ImageNew converted image.
Exceptions
Exception | Condition |
---|---|
InvalidCastException | If the input image has an unknown/inconvertible color model |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
Remarks
This method differs from ToRGB(Image) in that if the color model is RGBGuess instead assumedColorModel is used.
With that you can build your own images consisting of the desired color space and convert it to RGB.
See Also