![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Scalable BitmapEffects I'm writing an application that contains some Rectangles (with DropShadowBitmapEffect) in a Canvas with a ScaleTransform (> 1). The rectangles are blurred. I'd like to know if the BitmapEffects is always going to produce a non scalable effect or if is going to change in the following versions. Thanks in advance. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Scalable BitmapEffects Have you tried scaling the rectangle within a viewbox instead of a scaled canvas? I'm wondering if it's maybe scaling the anti-aliasing along with the vectors themselves (I haven't noticed that effect with a viewbox) |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Scalable BitmapEffects Ok, try this: <Canvas> <Canvas.RenderTransform> <ScaleTransform x:Name="scale" ScaleX="1" ScaleY="1" /> </Canvas.RenderTransform> <Button Width="80" Height="30"> <Button.BitmapEffect> <DropShadowBitmapEffect /> </Button.BitmapEffect> Button </Button> <Canvas.Triggers> <EventTrigger RoutedEvent="Canvas.Loaded"> <EventTrigger.Actions> <BeginStoryboard> <Storyboard Storyboard.TargetName="scale"> <DoubleAnimation Storyboard.TargetProperty="ScaleX" To="10" /> <DoubleAnimation Storyboard.TargetProperty="ScaleY" To="10" /> </Storyboard> </BeginStoryboard> </EventTrigger.Actions> </EventTrigger> </Canvas.Triggers> </Canvas> Look that the button is blurred until you move your mouse over (forcing repaint). This don't happens if I set BitmapEffect="{x:Null}". Anyway, the ScaleTransform does not affect the DropShadow when the button is well painted. |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Scalable BitmapEffects I'm experiencing this problem as well. <lcantelmo@gmail.com> wrote in message news:1139317764.433797.51330@g47g2000cwa.googlegroups.com... > Ok, try this: > > <Canvas> > <Canvas.RenderTransform> > <ScaleTransform x:Name="scale" ScaleX="1" ScaleY="1" /> > </Canvas.RenderTransform> > > <Button Width="80" Height="30"> > <Button.BitmapEffect> > <DropShadowBitmapEffect /> > </Button.BitmapEffect> > Button > </Button> > > <Canvas.Triggers> > <EventTrigger RoutedEvent="Canvas.Loaded"> > <EventTrigger.Actions> > <BeginStoryboard> > <Storyboard Storyboard.TargetName="scale"> > <DoubleAnimation Storyboard.TargetProperty="ScaleX" To="10" /> > <DoubleAnimation Storyboard.TargetProperty="ScaleY" To="10" /> > </Storyboard> > </BeginStoryboard> > </EventTrigger.Actions> > </EventTrigger> > </Canvas.Triggers> > </Canvas> > > Look that the button is blurred until you move your mouse over (forcing > repaint). This don't happens if I set BitmapEffect="{x:Null}". > Anyway, the ScaleTransform does not affect the DropShadow when the > button is well painted. > |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Scalable BitmapEffects Thanks for your feedback. This is now fixed for Beta 2. (Not JAN or FEB CTP) By design, 1. Effects used to be applied prior to scaling. 2. Effects = BitmapEffect = non-Vector = does not scale well. "CSkinner" wrote: > I'm experiencing this problem as well. > > <lcantelmo@gmail.com> wrote in message > news:1139317764.433797.51330@g47g2000cwa.googlegroups.com... > > Ok, try this: > > > > <Canvas> > > <Canvas.RenderTransform> > > <ScaleTransform x:Name="scale" ScaleX="1" ScaleY="1" /> > > </Canvas.RenderTransform> > > > > <Button Width="80" Height="30"> > > <Button.BitmapEffect> > > <DropShadowBitmapEffect /> > > </Button.BitmapEffect> > > Button > > </Button> > > > > <Canvas.Triggers> > > <EventTrigger RoutedEvent="Canvas.Loaded"> > > <EventTrigger.Actions> > > <BeginStoryboard> > > <Storyboard Storyboard.TargetName="scale"> > > <DoubleAnimation Storyboard.TargetProperty="ScaleX" To="10" /> > > <DoubleAnimation Storyboard.TargetProperty="ScaleY" To="10" /> > > </Storyboard> > > </BeginStoryboard> > > </EventTrigger.Actions> > > </EventTrigger> > > </Canvas.Triggers> > > </Canvas> > > > > Look that the button is blurred until you move your mouse over (forcing > > repaint). This don't happens if I set BitmapEffect="{x:Null}". > > Anyway, the ScaleTransform does not affect the DropShadow when the > > button is well painted. > > > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Scalable File Storage | Virtual Server | |||
| Vista Scalable Desktop | Vista installation & setup | |||