On 11/9/05, Claudia Barnal <[EMAIL PROTECTED]> wrote: > When reading the "DisplacementMapFilter" documentation I found this piece of > information: > > "A filter is not applied if the resulting image would exceed 2880 pixels in > width or height. For example, if you zoom in on a large movie clip with a > filter applied, the filter is turned off if the resulting image reaches the > 2880-pixel limit." > > So, my question is: How can I dynamically know the width of the resulting > image?
Can you use BitmapData.generateFilterRect ? "Determines the destination rectangle that the applyFilter() method call affects, given a BitmapData object, a source rectangle, and a filter object. For example, a blur filter normally affects an area larger than the size of the original image. A 100 x 200 pixel image that is being filtered by a default BlurFilter instance, where blurX = blurY = 4 generates a destination rectangle of (-2,-2,104,204). The generateFilterRect() method lets you find out the size of this destination rectangle in advance so that you can size the destination image appropriately before performing a filter operation." -David R _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

