ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEJoinBitmaps changed to TIEBitmap.JoinBitmaps
 New Topic  Reply to Topic
Author  Topic Next Topic  

lorife

Italy
38 Posts

Posted - Mar 13 2023 :  03:10:25  Show Profile  Reply
Hello,
I have been using IEJoinBitmaps like this:

destBmp := TIEBitmap.Create();
IEJoinBitmaps(destBmp, iev_IN.IEBitmap, iev_IN2.IEBitmap, false, clWhite);
idx := iemv_OUT.AppendImage;
iemv_OUT.SetImage(idx, destBmp);
iemv_OUT.MIO.Params[0].PDF_Compression  := TIOPDFCompression.ioPDF_JPEG;
iemv_OUT.MIO.Params[0].PDF_PaperSize    := TIOPDFPaperSize.iepA4;
iemv_OUT.MIO.Params[0].PDF_PaperLayout  := TIEPageLayout.ielLandscape;
iemv_OUT.MIO.Params[0].PDF_ImageOptions := [iepioShrinkOnly, iepioCentered];
iemv_OUT.MIO.SaveToFile('c:\temp\test.pdf', 0, false)
destBmp.Free;


now with the last version this changed to TIEBitmap.JoinBitmaps but I'm not sure how to change it.
Before I had the new image into destBmp.
How can I do it now? where does the merged image go?

Thank you

xequte

37560 Posts

Posted - Mar 14 2023 :  23:14:29  Show Profile  Reply
Hi

IEJoinBitmaps() is still available, but you need to add imageenproc to your uses clauses.

Alternatively, this code:

IEJoinBitmaps(destBmp, iev_IN.IEBitmap, iev_IN2.IEBitmap, false, clWhite);

Should be changed to:

destBmp.JoinBitmaps(iev_IN.IEBitmap, iev_IN2.IEBitmap, false);

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

lorife

Italy
38 Posts

Posted - Mar 24 2023 :  05:30:05  Show Profile  Reply
Hello,
I changed my code as you suggested.
It works great.
Only problem I see is the PDF size. it's much bigger than I expected. Is it normal? If you check the code I pasted I compress it.
I am sending you by mail the 2 files I use.
Thank you
Go to Top of Page

xequte

37560 Posts

Posted - Mar 24 2023 :  19:58:44  Show Profile  Reply
Hi

What method are you using to support PDF loading? Is it the PDFium DLLs from our download page?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

lorife

Italy
38 Posts

Posted - Mar 27 2023 :  01:59:50  Show Profile  Reply
Hello,
I load PDF using PDFium like this:

myImageEN.IO.LoadFromFilePDF(FConversioni.FFullPathIN);

I am using the last version just downloaded from your website.

Go to Top of Page

lorife

Italy
38 Posts

Posted - Mar 27 2023 :  02:45:56  Show Profile  Reply
I sent you a demo project to your email.
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
Jump To: