Doc.loadPngImageFromFile

Loads an external PNG image file.

If deferred is true. then does not load all the data immediately (only size and color properties are loaded). The main data are loaded just before the image object is written to PDF, and the loaded data are deleted immediately.

class Doc
Image
loadPngImageFromFile
(
string filename
,
bool deferred = false
)

Parameters

filename string

a path to a PNG image file

deferred bool

if the load of the image must be referred

Return Value

Type: Image

when loadPngImageFromFile() succeeds, it returns an instance of a Image object. Otherwise, it returns null and error-handler is called.

Meta