



Collapse All
Syntax| HRESULT PlaceImageToCurrentPage ( LONG imageIndex, DOUBLE left, DOUBLE top ) |
RemarksThis method places the image data with a top-left corner at (left, top), normal (zero-angle) orientation and original size into the current content stream for the page.
The index of the image can be retrieved from any image loading method, such as AddImageFromFile.
Equivalent in new interface: IPDFDocument4::ShowImage.
Example{ PDF object is supposed to be created }
PDF.BeginDoc;
j := PDF.AddImageFromFile('picture.jpg');
PDF.PlaceImageToCurrentPage(j, 200, 0);
PDF.EndDoc;
// PDF object is supposed to be created
PDF->BeginDoc();
LONG j = PDF->AddImageFromFile("picture.jpg");
PDF->PlaceImageToCurrentPage(j, 200, 0);
PDF->EndDoc();
// PDF object is supposed to be created
PDF.BeginDoc();
long j = PDF.AddImageFromFile("picture.jpg");
PDF.PlaceImageToCurrentPage(j, 200, 0);
PDF.EndDoc();
' PDF object is supposed to be created
PDF.BeginDoc
j = PDF.AddImageFromFile("picture.jpg")
PDF.PlaceImageToCurrentPage j, 200, 0
PDF.EndDoc
See Also