[]
Converts image to one of allowed image format if needed.
ImageData Convert(MemoryStream imageStream, ImageFormat[] allowedFormats, bool fixRotation)
Type | Name | Description |
---|---|---|
MemoryStream | imageStream | A stream that contains the image data. |
ImageFormat[] | allowedFormats | Allowed image formats. The conversion will not be performed if the image have one of these formats. |
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. |