[]
Converts image to one of allowed image format if needed.
public ImageData ConvertImageData(ImageFormat[] allowedFormats, bool fixRotation)
Type | Name | Description |
---|---|---|
ImageFormat[] | allowedFormats | Allowed image formats for conversion. |
bool | fixRotation | Specifies whether to rotate the image according to the EXIF orientation. |
Type | Description |
---|---|
ImageData | The ImageData struct which contains the data stream from which the image can be loaded and the format of the image. |