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
 Resolution Issue
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jeff@lucion.com

USA
8 Posts

Posted - May 21 2015 :  16:01:27  Show Profile  Reply
See the code below.

If I pass an HDIB that has a resolution of 200x200, the Result below comes out at 300x300. How do I preserve the resolution when I load and manipulate the HDIB in TImageEnVect?


IEBitmap.CopyFromDIB(HDib);

Result := IEBitmap.CreateDIB;

xequte

38514 Posts

Posted - May 24 2015 :  20:12:43  Show Profile  Reply
I can't see how that could occur. Can you email us a small demo.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

jeff@lucion.com

USA
8 Posts

Posted - May 25 2015 :  18:41:59  Show Profile  Reply
NOt sure how to do that since the DIB is created by a different third party software.

What's strange is that if the assign the DIB to a TBitmap and the use your CopyFromTBitmap it keeps the original resolution.
Go to Top of Page

xequte

38514 Posts

Posted - May 25 2015 :  21:13:58  Show Profile  Reply
Hmmm, I've just re-checked the code and cannot see any issues. It also uses a TBitmap internally to retrieve the DIB.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

jeff@lucion.com

USA
8 Posts

Posted - May 25 2015 :  21:46:31  Show Profile  Reply
Do you have a procedure or property that allow me to reset the resolution or find out what it is on the loaded DIB?
Go to Top of Page

xequte

38514 Posts

Posted - May 28 2015 :  05:03:03  Show Profile  Reply
Hi

No, I'm afraid that is not possible with a DIB.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: