HRESULT PlaceImageToCurrentPage ( LONG imageIndex, DOUBLE left, DOUBLE top ) |
This 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.
{ 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