Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / RawImage Class / FromBytes Method
The byte array 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
    FromBytes Method (RawImage)
    In This Topic
    Creates a new instance of the RawImage class from a byte array, RawImage supports only JPEG or JPEG2000 image formats.
    Syntax
    'Declaration
     
    Public Shared Function FromBytes( _
       ByVal data() As System.Byte, _
       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 FromBytes( 
       System.byte[] data,
       RawImageFormat format,
       System.int width,
       System.int height,
       System.float horizontalResolution,
       System.float verticalResolution
    )

    Parameters

    data
    The byte array 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