



Collapse All
Syntax| LONG AddImageFromFile ( BSTR fileName ) |
RemarksThe return value is an image identifier in the document's images collection and can be used in FlipImage, GetImageHeight, GetImageResolution, GetImageWidth, MakeImageGrayScale, MakeImageNegative, PlaceImageToCurrentPage, PDFPAGE_ShowImage.
Equivalent in new interface: IPDFDocument4::AddImageFromFile.
Example{ PDF object is supposed to be created }
PDF.BeginDoc;
j := PDF.AddImageFromFile('chart.jpg');
PDF.PDFPAGE_ShowImage(j, 5, 5, 205, 155, 0);
PDF.EndDoc;
// PDF object is supposed to be created
PDF->BeginDoc();
LONG j = PDF->AddImageFromFile("chart.jpg");
PDF->PDFPAGE_ShowImage(j, 5, 5, 205, 155, 0);
PDF->EndDoc();
// PDF object is supposed to be created
PDF.BeginDoc();
long j = PDF.AddImageFromFile("chart.jpg");
PDF.PDFPAGE_ShowImage(j, 5, 5, 205, 155, 0);
PDF.EndDoc();
' PDF object is supposed to be created
PDF.BeginDoc
j = PDF.AddImageFromFile("chart.jpg")
PDF.PDFPAGE_ShowImage j, 5, 5, 205, 155, 0
PDF.EndDoc
See Also