FlexReport for .NET | ComponentOne
C1.WPF.Document Assembly / C1.WPF.Document Namespace / Utils Class / WriteImageToStream Method / WriteImageToStream(Image,ImageFormat,Stream) Method

In This Topic
    WriteImageToStream(Image,ImageFormat,Stream) Method
    In This Topic
    Writes specified image to stream.
    Syntax
    'Declaration
     
    Public Overloads Shared Function WriteImageToStream( _
       ByVal image As Image, _
       ByVal imageFormat As ImageFormat, _
       ByVal stream As Stream _
    ) As ImageFormat
    public static ImageFormat WriteImageToStream( 
       Image image,
       ImageFormat imageFormat,
       Stream stream
    )

    Parameters

    image
    imageFormat
    stream

    Return Value

    Returns null if error occurs during writing or System.Drawing.Imaging.ImageFormat which was actually used to save an image.
    See Also