Click or drag to resize

ThreadedCommandSelectBestAlternatePixelFormat Method

Choose the best pixel format to use for this command when the supplied source image's pixel format is unacceptable.

Namespace:  Atalasoft.Imaging.ImageProcessing
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
protected override PixelFormat SelectBestAlternatePixelFormat(
	AtalaImage sourceImage,
	PixelFormat sourceFormat,
	PixelFormat[] formats
)

Parameters

sourceImage
Type: Atalasoft.ImagingAtalaImage
The source image to be processed.
sourceFormat
Type: Atalasoft.ImagingPixelFormat
The source image's pixel format.
formats
Type: Atalasoft.ImagingPixelFormat
The pixel formats supported by this command.

Return Value

Type: PixelFormat
A new pixel format for the command. This new pixel format must be one of the pixel formats in the supported pixel formats.
Remarks
The default implementation returns the 0th element of the formats array.
See Also