Click or drag to resize

ImageCommandGetChangedPixelFormat 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: (.NET 4.5.2, x86)
protected virtual AtalaImage GetChangedPixelFormat(
	AtalaImage sourceImage,
	PixelFormat newFormat


Type: Atalasoft.ImagingAtalaImage
The original source image.
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.
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