DrawPNGFile

Top  Previous  Next

function DrawPNGFile(x, y, w, h : Integer; 

  PNGImageFile : String

  OnCanvasMode : Boolean = false): Integer;

 

This methods exports a PNG file. It requires the PDF Engine to be able to decode PNG.

Optionally also a JPEG file can be exported since it is detected by the PDF engine.

 

If OnCanvasMode=true the image will be exported in the current working state of the canvas. In that case the result value is 0, it is not possible to print duplicated images.

 

Options is currently not used.

 

Example: draw PNG file and also a copy

 

    i := pdf.DrawPNGFile( 100, 100, 400, 400,

          'transparent.png',

          0, true

        );

   pdf.DrawBitmapClone(100,100, 300,300, i);