This method inserts an image (using the memory handle) into a PDF document and returns the index of the image. Use compressionType to set the image compression.
LONG AddImageFromBitmapHandle ( OLE_HANDLE handle, TxImageCompressionType compressionType ) |
This method returns the new image index. If there is more than one image in a buffer, then it returns the index of the most recently added image.
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::AddImageFromHandle.
{ PDF object is supposed to be created } PDF.BeginDoc; j := PDF.AddImageFromBitmapHandle(Img_HDC, itcJpeg); PDF.PDFPAGE_ShowImage(j, 5, 5, 255, 368, 0); PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); LONG j = PDF->AddImageFromBitmapHandle(Img_HDC, itcJpeg); PDF->PDFPAGE_ShowImage(j, 5, 5, 255, 368, 0); PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); long j = PDF.AddImageFromBitmapHandle(Img_HDC, TxImageCompressionType.itcJpeg); PDF.PDFPAGE_ShowImage(j, 5, 5, 255, 368, 0); PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc j = PDF.AddImageFromBitmapHandle(Img_HDC, itcJpeg) PDF.PDFPAGE_ShowImage j, 5, 5, 255, 368, 0 PDF.EndDoc