Method FromBytes

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

FromBytes(byte[])

Loads an image from memory (the first page of a TIFF); the format is detected from the content.

public static PdfImage FromBytes(byte[] data)

Parameters

data byte[]

The image file's bytes. They are copied, so the array may be reused afterwards.

Returns

PdfImage

Exceptions

NotSupportedException

The format, or a variant of it, is not supported.

InvalidDataException

The image data is corrupt.