LONG AddImageFromBuffer ( VARIANT* imageBuffer, TxImageCompressionType compressionType ) |
The return value is an image identifier in document's images collection and can be used in FlipImage, GetImageHeight, GetImageResolution, GetImageWidth, MakeImageGrayScale, MakeImageNegative, PlaceImageToCurrentPage, PDFPAGE_ShowImage.
Equivalent in new interface: IPDFDocument4::AddImageFromBLOB.
{ PDF object is supposed to be created } PDF.BeginDoc; j := PDF.AddImageFromBuffer(Buffer, itcJpeg); PDF.PDFPAGE_ShowImage(j, 5, 5, 155, 85, 0); PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); LONG j = PDF->AddImageFromBuffer(Buffer, itcJpeg); PDF->PDFPAGE_ShowImage(j, 5, 5, 155, 85, 0); PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); long j = PDF.AddImageFromBuffer(Buffer, TxImageCompressionType.itcJpeg); PDF.PDFPAGE_ShowImage(j, 5, 5, 155, 85, 0); PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc j = PDF.AddImageFromBuffer(Buffer, itcJpeg) PDF.PDFPAGE_ShowImage j, 5, 5, 155, 85, 0 PDF.EndDoc