Re: Aspect ratio display
Started by smckigney@jackhenry.com at 05-13-2008 18:04. Topic has 6 replies.
|
|
05-13-2008, 18:04
|
smckigney@jackhenry.com
Joined on 07-17-2003
Posts 5
|
|
|
Hi. We recently converted from LeadTools 12 where we were using the VCL components to LeadTools 15 where we are using the C++ class library. The development environment is Borland.
I use the 'LBitmapWindow as a window' method described in the documentation where I have a TPanel and then send it's handle into the SetWndHandle() method. Then everything is displayed on that panel.
I have 2 questions.
First, I use ZOOM_FIT to maintain the aspect ratio of the image. We used to use smFit for the VCL control. In LeadTools 12, the image was positioned at the top left corner so that there was filler space at the bottom and the right. In LeadTools 15, the image is now centered. Our QA guys are complaining and I haven't found a way to get it to draw the image in the top left portion of the window. Is this just a LeadTools 15 change? Is there anything to change that behavior?
Second, is there any way to change the color of the filler space to black? It is gray now and it used to be black.
Thanks so much,
Shannon
|
|
|
|
|
Report
|
|
|
|
05-14-2008, 14:08
|
smckigney@jackhenry.com
Joined on 07-17-2003
Posts 5
|
|
|
Sending FALSE to EnableCenterOnZoom() worked great. Thank you so much!
No, the color of the TPanel control is black. Its color doesn't seem to show through. Is there any color setting in the LBitmapWindow that I am missing?
Thanks,
Shannon
|
|
|
|
|
Report
|
|
|
|
05-15-2008, 12:07
|
Adnan Ismail

Joined on 07-31-2006
Posts 1,367
|
|
|
Shannon, I am not sure how exactly you are using it. Can you create a small test project (not your full application) and send it to me so i can check it for you? If you want to send the project, please put it in a ZIP or RAR file.
Adnan Ismail LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
07-11-2008, 11:46
|
smckigney@jackhenry.com
Joined on 07-17-2003
Posts 5
|
|
|
Hi again. I have attached the requested test project. The panel whose handle I set in the LBitmapWindow is black, but as soon as I associate the LBitmapWindow with the panel and load the image, it turns grey.
You don't even have to load the image to see it. It does have to be forced to repaint though by hiding it behind another window and then showing it again.
But, I have included the image, so that you can see that too.
Hopefully, there is just a simple setting or something like that to tell it to use black for the excess space.
Thanks,
Shannon
|
|
|
|
|
Report
|
|
|
|
07-11-2008, 11:51
|
smckigney@jackhenry.com
Joined on 07-17-2003
Posts 5
|
|
|
Can you see the attachment? I attached ForLEADSupport.zip to the post using the provided 'Attachment: 'Browse'' button, but I don't see where it showed up after I posted the message. I will try again on this message and please let me know if I need to attach it differently or send it to you another way. Thanks, Shannon
|
|
|
|
|
Report
|
|
|
|
07-14-2008, 11:00
|
Adnan Ismail

Joined on 07-31-2006
Posts 1,367
|
|
|
Shannon, In the LBase::LoadLibraries I noticed that you are using the LT_ISI flag. The ISIS support was removed from LEADTOOLS v15. Also, I was not able to compile or run your application; I suspect you might be using older version of LEADTOOLS with the latest ones. Is this correct? If yes, please note that this should never be done.
I tried to add your code to a project I created in Borland C++ Builder 2006. Which version did you use?
Adnan Ismail LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
|
LEAD Support Fo... » Developer » Image Display » Re: Aspect ratio display
|
|
Copyright LEAD Technologies, Inc. 2008
