public Image loadPngImageFromFile(
    string filename, 
    bool deferred = false)

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.

Parameters

filename

a path to a PNG image file

deferred

if the load of the image must be referred

Returns

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