



Collapse All
Syntax| LONG AddImageFromFilename ( BSTR fileName, TxImageCompressionType compressionType ) |
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.AddImageFromFileName('chart.jpg', itcJpeg);
PDF.PDFPAGE_ShowImage(j, 5, 5, 205, 155, 0);
PDF.EndDoc;
// PDF object is supposed to be created
PDF->BeginDoc();
LONG j = PDF->AddImageFromFileName("chart.jpg", itcJpeg);
PDF->PDFPAGE_ShowImage(j, 5, 5, 205, 155, 0);
PDF->EndDoc();
// PDF object is supposed to be created
PDF.BeginDoc();
long j = PDF.AddImageFromFileName("chart.jpg", TxImageCompressionType.itcJpeg);
PDF.PDFPAGE_ShowImage(J, 5, 5, 205, 155, 0);
PDF.EndDoc();
' PDF object is supposed to be created
PDF.BeginDoc
j = PDF.AddImageFromFileName("chart.jpg", itcJpeg)
PDF.PDFPAGE_ShowImage j, 5, 5, 205, 155, 0
PDF.EndDoc
See Also