ImageCommand.SelectBestAlternatePixelFormat 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.4.0.9.0.377 (.NET 4.5.2, x86)
Syntaxprotected virtual PixelFormat SelectBestAlternatePixelFormat(
AtalaImage sourceImage,
PixelFormat sourceFormat,
PixelFormat[] formats
)
Protected Overridable Function SelectBestAlternatePixelFormat (
sourceImage As AtalaImage,
sourceFormat As PixelFormat,
formats As PixelFormat()
) As PixelFormat
Parameters
- sourceImage
- Type: Atalasoft.Imaging.AtalaImage
The source image to be processed. - sourceFormat
- Type: Atalasoft.Imaging.PixelFormat
The source image's pixel format. - formats
- Type:Atalasoft.Imaging.PixelFormat[]
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