Click or drag to resize

TransformSelectCompatibleBackgroundColor Method

Returns a color value compatible with the image.

Namespace:  Atalasoft.Imaging.ImageProcessing.Transforms
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
protected Color SelectCompatibleBackgroundColor(
	AtalaImage image,
	Color sourceColor
)

Parameters

image
Type: Atalasoft.ImagingAtalaImage
The image to get a color for.
sourceColor
Type: System.DrawingColor
The requested color.

Return Value

Type: Color
A color compatible with the image provided.
Remarks
This method will return a grayscale color if the image is grayscale or a CMYK color if the image format is CMYK.
See Also