Keisuke, 

Thanks for the helpful response. I had not thought about scaling the image 
manually. It took awhile, but I finally got the math right…. It works!!

> is there a reason why your image is scaled on screen?

        If I understand the question, a user is manually cropping the image 
using a marque tool and so needs to see the whole image at once without 
scrolling. 

> the scaling factor of a proportional image depends on its orientation and the 
> type of scaling you apply (e.g. xMidYMid):
> 
> c.f. 
> https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio
>  
> <https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio>

        Thanks for the link. While I did not understand it very well, it did 
remind me that the math is different depending on which is larger on the 
original picture, width or height.

> unlike resampling with CREATE THUMBNAIL,
> scaling with TRANSFORM PICTURE does not reduce the image quality.
> the result is the same as letting the form object do the scaling,
> except you have control over the ratio.

        Yep. The results are great. 

Thanks again,

John



        
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to