Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: RasterPaintSizeMode.FitWidth: what about fit FitHeight
Started by nick@compufit at 06-13-2008 6:40. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  06-13-2008, 6:40
nick@compufit is not online. Last active: 6/9/2008 2:25:23 PM nick@compufit

Top 500 Posts
Joined on 06-09-2008
Posts 8
RasterPaintSizeMode.FitWidth: what about fit FitHeight
Reply Quote
Hey,

for example:
i have an image 100x50 (width x height)
my screen is 500x500 (width x height)

when i use RasterPaintSizeMode.FitWidth, the image will use the whole width of the screen.
How can i do it for the height, so the image will use the whole height of the rasterview?



   Report 
  06-13-2008, 16:58
GregR is not online. Last active: 8/29/2008 2:25:56 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,542
Re: RasterPaintSizeMode.FitWidth: what about fit FitHeight
Reply Quote
I have submitted a feature request regarding this functionality.  For your reference, the feature request number is 965FRQ.  If chosen for implementation, most feature requests are added at major releases (15, 16 etc.).
 
If this is an urgent need, please contact our custom development department by visiting http://www.leadtools.com/devservices/ for a quote.

As for now, you will have to do the math and calculate the size mode to Normal, and calculate a ScaleFactor that will display the image accordingly.

In your example, the scale factor would need to be about 10 (viewer height / image height).  I say about because you may need to do some minor changes to the calculation if you are using AutoScroll because sometimes the vertical scroll bar will still have a little bit left to scroll.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Image Display » Re: RasterPaintSizeMode.FitWidth: what about fit FitHeight

Powered by Community Server, by Telligent Systems