Maybe a demo will help. In this example, the components look right at their full size. Use the slider to zoom in, and notice how the glow filter doesn't shrink, and the background scaling looks strange. The demo is view source enabled.
Thanks for any help- this is driving me nuts.
It looks like my problem with the GlowFilter is that filters are applied after an object is rendered, meaning after the transforms are performed. Does anyone know of something equivalent to a glow filter that would happen before the transforms? I'd be fine with adding another rect with some fancy background or stroke if it could look the same way.
Still no clue what to do about the bitmap changing though.
1 person found this helpful
A couple of thoughts, maybe not so useful...
could you over-ride the scaling in the fill so that the pattern remains the same, bind the glow parameters to the scaling (create a variable that reduces by the scale factor). Also with filters not sure if postLayoutTransformOffsets would be helpful.
Have you tried using the z-axis to create the zoom effect, not sure what you are trying to do but this might be an option...
I tried using z instead, which solves the problem of the non-scaling filter, but it makes my panning controls less effective. if I scale, moving by x/y is 1:1 at any level. If I zoom with z, moving by x/y is 1:1/(z). Once I zoom out a lot, it's really difficult to pan around.
Good call on simply scaling the GlowFilter manually- that works great. I've never written a custom IFill, so if there are any good tutorials on doing this, I'd appreciate it.