ConvertColorSpaceToRGBFrom Method

CVB.Net Documentation
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

public static Image ToRGBFrom(
	Image img,
	ColorModel assumedColorModel
)

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: Image
New converted image.
Exceptions

ExceptionCondition
InvalidCastExceptionIf the input image has an unknown/inconvertible color model
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf 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

Reference