HRESULT ShowImage ( LONG imageNumber, FLOAT left, FLOAT top ) |
This method places the image data - at the specified size (width, height) and with one corner at (left, top) - into the current content stream for the page. imageNumber is returned by any image loading method, such as AddImageFromFile.
Use the DrawImage method if you want to scale the image.
{ PDF object is supposed to be created } img := PDF.AddImageFromFile('image.gif'); PDF.ShowImage(img, 20, 40); PDF.SaveToFile('test.pdf', true);
// PDF object is supposed to be created long img = PDF->AddImageFromFile("image.gif"); PDF->ShowImage(img, 20, 40); PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created long img = PDF.AddImageFromFile("image.gif"); PDF.ShowImage(img, 20, 40); PDF.SaveToFile("test.pdf", true);
' PDF object is supposed to be created img = PDF.AddImageFromFile("image.gif") PDF.ShowImage img, 20, 40 PDF.SaveToFile "test.pdf", true