HRESULT PDFPAGE_ShowImage ( LONG imageIndex, DOUBLE left, DOUBLE top, DOUBLE width, DOUBLE height, DOUBLE angle ) |
The method places the image data at the specified size (width, height) with one corner at (left, top), and an angle, specified in degrees (positive values for counterclockwise rotation), into the current content stream for the page. imageIndex is returned by any image loading method, like AddImageFromFilename.
Equivalent in new interface: IPDFDocument4::ShowImage, IPDFDocument4::DrawImage.
{ PDF object is supposed to be created } PDF.BeginDoc; j := PDF.AddImageFromFile('picture.jpg'); PDF.PDFPAGE_ShowImage(j, 200, 0, 122, 89, 0); PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); LONG j = PDF->AddImageFromFile("picture.jpg"); PDF->PDFPAGE_ShowImage(j, 200, 0, 122, 89, 0); PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); long j = PDF.AddImageFromFile("picture.jpg"); PDF.PDFPAGE_ShowImage(j, 200, 0, 122, 89, 0); PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc j = PDF.AddImageFromFile("picture.jpg") PDF.PDFPAGE_ShowImage j, 200, 0, 122, 89, 0 PDF.EndDoc