Click or drag to resize

PixelFormatChangerChangePixelFormat Method

Allocate a new AtalaImage based on the sourceImage, using the requested pixel format.

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public AtalaImage ChangePixelFormat(
	AtalaImage sourceImage,
	PixelFormat targetPixelFormat,
	ColorProfile destProfile
)

Parameters

sourceImage
Type: Atalasoft.ImagingAtalaImage
The image to be converted to a new format.
targetPixelFormat
Type: Atalasoft.ImagingPixelFormat
The requested PixelFormat
destProfile
Type: Atalasoft.Imaging.ColorManagementColorProfile
An optional color profile to use for the conversion.

Return Value

Type: AtalaImage
A new AtalaImage of the requested PixelFormat.
Remarks
If targetPixelFormat is the same as the PixelFormat of sourceImage, this method will throw an IncompatiblePixelFormat exception.
See Also