ThreadedCommandGetChangedPixelFormat Method |
This method is called to change the pixel format of the source image.
Namespace:
Atalasoft.Imaging.ImageProcessing
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax protected override AtalaImage GetChangedPixelFormat(
AtalaImage sourceImage,
PixelFormat newFormat
)
Protected Overrides Function GetChangedPixelFormat (
sourceImage As AtalaImage,
newFormat As PixelFormat
) As AtalaImage
Parameters
- sourceImage
- Type: Atalasoft.ImagingAtalaImage
The original source image. - newFormat
- Type: Atalasoft.ImagingPixelFormat
The new pixel format.
Return Value
Type:
AtalaImage
A new image in the new pixel format, with image data translated from the source image.
Remarks
The default implementation uses the built-in AtalaImage.GetChangedPixelFormat method, which in turn uses
the PixelFormatChanger installed in AtalaImage. By overriding this method, you can bypass the built-in pixel format
translation and supply your own and isolate it to an individual command.
See Also