[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Document.IImageConverterService.Convert

Convert Method

Convert(MemoryStream, ImageFormat[], bool)

Converts image to one of allowed image format if needed.

Declaration
ImageData Convert(MemoryStream imageStream, ImageFormat[] allowedFormats, bool fixRotation)
Parameters
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.

Returns
Type Description
ImageData

The ImageData struct which contains the data stream from which the image can be loaded and the format of the image.