ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Core.Document.Drawing.Gdi Assembly / GrapeCity.ActiveReports.Core.Document.Drawing.Gdi Namespace / GdiImageConverterService Class / 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 (GdiImageConverterService)
    In This Topic
    Converts image to one of allowed image format if needed.
    Syntax
    'Declaration
     
    Public Function Convert( _
       ByVal imageStream As MemoryStream, _
       ByVal allowedFormats() As ImageFormat, _
       ByVal fixRotation As Boolean _
    ) As ImageData
    public 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.
    See Also