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 - How to do moveable transparent region.

 
 
Old 01-24-2007   #1 (permalink)
bsmucker


 
 

How to do moveable transparent region.

Hello,

I'm fairly new to WPF and am wondering if anyone can give me some
pointers of how to implement the following:

I have a background image and a hidden image superimposed on each other,
but would like to have the effect of a draggable "lens" that as the user
moves it about over the background image, it displays the hidden image
directly underneath it.

Could someone point me in a direction for this?

Thanks

My System SpecsSystem Spec
Old 01-25-2007   #2 (permalink)
GeneW


 
 

RE: How to do moveable transparent region.

The draggable "lens" should use a VisualBrush. That VisualBrush should be
mapped to your "hidden" image.

"bsmucker" wrote:

> Hello,
>
> I'm fairly new to WPF and am wondering if anyone can give me some
> pointers of how to implement the following:
>
> I have a background image and a hidden image superimposed on each other,
> but would like to have the effect of a draggable "lens" that as the user
> moves it about over the background image, it displays the hidden image
> directly underneath it.
>
> Could someone point me in a direction for this?
>
> Thanks
>

My System SpecsSystem Spec
Old 01-26-2007   #3 (permalink)
Adam Smith [MS]


 
 

Re: How to do moveable transparent region.

That certainly works, though an alternative is to create a DrawingBrush to
use as an OpacityMask on the background Image which has a transparent hole
in the middle. This will "punch" a hole through the Element with which it
is associated to reveal whatever's behind.

-Adam Smith [MS]

"GeneW" <GeneW@discussions.microsoft.com> wrote in message
news:6B7DE049-08E8-4340-8858-C69FF77E4B89@microsoft.com...
> The draggable "lens" should use a VisualBrush. That VisualBrush should be
> mapped to your "hidden" image.
>
> "bsmucker" wrote:
>
>> Hello,
>>
>> I'm fairly new to WPF and am wondering if anyone can give me some
>> pointers of how to implement the following:
>>
>> I have a background image and a hidden image superimposed on each other,
>> but would like to have the effect of a draggable "lens" that as the user
>> moves it about over the background image, it displays the hidden image
>> directly underneath it.
>>
>> Could someone point me in a direction for this?
>>
>> Thanks
>>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
DVD Region Incorrect Vista General
Blu ray region code. Media Center
OCX files moveable to other folder? Change search path for OCX files possible? VB Script
dvd region problems Vista hardware & devices
No DVD Region Tab Vista hardware & devices


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