'Declaration Function Convert( _ ByVal imageStream As MemoryStream, _ ByVal allowedFormats() As ImageFormat, _ ByVal fixRotation As Boolean _ ) As ImageData
ImageData Convert( MemoryStream imageStream, ImageFormat[] allowedFormats, bool fixRotation )
Parameters
- imageStream
- A stream that contains the image data.
- allowedFormats
- Allowed image formats. The conversion will not be performed if the image have one of these formats.
- fixRotation
- Specifies whether to rotate the image according to the EXIF orientation.
Return Value
The ImageData struct which contains the data stream from which the image can be loaded and the format of the image.