Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Aspect ratio display
Started by smckigney@jackhenry.com at 05-13-2008 18:04. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  05-13-2008, 18:04
smckigney@jackhenry.com is not online. Last active: 5/13/2008 10:22:07 PM smckigney@jackhenry.com

Not Ranked
Joined on 07-17-2003
Posts 3
Aspect ratio display
Reply Quote
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, 9:18
Adnan Ismail is not online. Last active: 7/1/2008 9:22:03 AM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,047
Re: Aspect ratio display
Reply Quote
Shannon,
If you pass FALSE to the LBitmapWindow::EnableCenterOnZoom function, does it behave like you want it?

About the background color, is the gray color that of the TPanel control you're using? If yes, try to change its VCL background color property.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  05-14-2008, 14:08
smckigney@jackhenry.com is not online. Last active: 5/13/2008 10:22:07 PM smckigney@jackhenry.com

Not Ranked
Joined on 07-17-2003
Posts 3
Re: Aspect ratio display
Reply Quote
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 is not online. Last active: 7/1/2008 9:22:03 AM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,047
Re: Aspect ratio display
Reply Quote
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 
Post
LEAD Support Fo... » Developer » Image Display » Aspect ratio display

Powered by Community Server, by Telligent Systems