Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / RawImage Class / FromStream Method
The stream containing image data.
The format of the image.
The width of the image in pixels.
The height of the image in pixels.
The horizontal resolution.
The vertical resolution.

In This Topic
    FromStream Method (RawImage)
    In This Topic
    Creates a new instance of the RawImage class from a stream, RawImage supports only JPEG or JPEG2000 image formats.
    Syntax
    'Declaration
     
    Public Shared Function FromStream( _
       ByVal stream As System.IO.Stream, _
       ByVal format As RawImageFormat, _
       ByVal width As System.Integer, _
       ByVal height As System.Integer, _
       Optional ByVal horizontalResolution As System.Single, _
       Optional ByVal verticalResolution As System.Single _
    ) As RawImage
    public static RawImage FromStream( 
       System.IO.Stream stream,
       RawImageFormat format,
       System.int width,
       System.int height,
       System.float horizontalResolution,
       System.float verticalResolution
    )

    Parameters

    stream
    The stream containing image data.
    format
    The format of the image.
    width
    The width of the image in pixels.
    height
    The height of the image in pixels.
    horizontalResolution
    The horizontal resolution.
    verticalResolution
    The vertical resolution.
    See Also