[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.RawImage.FromBytes

FromBytes Method

FromBytes(byte[], RawImageFormat, int, int, float, float)

Creates a new instance of the RawImage class from a byte array, RawImage supports only JPEG or JPEG2000 image formats.

Declaration
public static RawImage FromBytes(byte[] data, RawImageFormat format, int width, int height, float horizontalResolution = 96, float verticalResolution = 96)
Public Shared Function FromBytes(data As Byte(), format As RawImageFormat, width As Integer, height As Integer, Optional horizontalResolution As Single = 96, Optional verticalResolution As Single = 96) As RawImage
Parameters
Type Name Description
byte[] data

The byte array containing image data.

RawImageFormat format

The format of the image.

int width

The width of the image in pixels.

int height

The height of the image in pixels.

float horizontalResolution

The horizontal resolution.

float verticalResolution

The vertical resolution.

Returns
Type Description
RawImage