ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Core.Document Assembly / GrapeCity.ActiveReports.Core.Document Namespace / IImageConverterService Interface / Convert Method
A stream that contains the image data.
Allowed image formats. The conversion will not be performed if the image have one of these formats.
Specifies whether to rotate the image according to the EXIF orientation.

In This Topic
    Convert Method (IImageConverterService)
    In This Topic
    Converts image to one of allowed image format if needed.
    Syntax
    'Declaration
     
    Function Convert( _
       ByVal imageStream As MemoryStream, _
       ByVal allowedFormats() As ImageFormat, _
       ByVal fixRotation As Boolean _
    ) As ImageData

    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.
    See Also