I have found that at some point while zooming in on an image (scaling), the image mysteriously no longer displays portions of the image, almost like it's getting truncated at the top left.

To see this, load the sample below and zoom in. For this image it happens a a zoom of 5.6. Scroll down and you'll see the top of the image disappeared.

Am I hitting another maximum limit? It appears to zoom in well past 2880 pixels.

What can I do to prevent this, or even detect when this will happen so I can limit the zooming to the point before it will happen?

tia
charles

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute">
        <mx:VBox width="100%" height="100%" top="5">
                <mx:HBox>
                        <mx:Label text="Scale" fontWeight="bold" />
<mx:NumericStepper id="zoom" value="0.5" minimum="0.1" maximum="24" stepSize="0.2"/> <mx:Label text="{Math.floor(image.width) + 'x' + Math.floor (image.height)}" />
                </mx:HBox>
<mx:Image id="image" source="http://lhsw.com/flex/ us_legal_8_5x11grid.png"
                        scaleX="{zoom.value}" scaleY="{zoom.value}"/>
        </mx:VBox>
</mx:Application>




Reply via email to