Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Scalable BitmapEffects

 
 
Old 02-08-2006   #1 (permalink)
lcantelmo@gmail.com


 
 

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 SpecsSystem Spec
Old 02-08-2006   #2 (permalink)
Keith Patrick


 
 

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 SpecsSystem Spec
Old 02-08-2006   #3 (permalink)
lcantelmo@gmail.com


 
 

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 SpecsSystem Spec
Old 02-12-2006   #4 (permalink)
CSkinner


 
 

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 SpecsSystem Spec
Old 02-21-2006   #5 (permalink)
Rahul Patil


 
 

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 SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Scalable File Storage Virtual Server
Vista Scalable Desktop Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46