Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Windows 7 Forum Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

How to do moveable transparent region.

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-24-2007   #1 (permalink)
bsmucker
Guest


 

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
Guest


 

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-25-2007   #3 (permalink)
GeneW
Guest


 

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   #4 (permalink)
Adam Smith [MS]
Guest


 

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
Old 01-26-2007   #5 (permalink)
Adam Smith [MS]
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD Region Tab in device manager dave xnet Vista General 0 08-15-2008 11:19 PM
dvd region problems cannonfodder Vista hardware & devices 3 12-10-2007 02:43 PM
Change DVD drive region Alan T Vista General 1 08-07-2007 10:01 AM
Choice of region for Microsoft services jaerha Vista installation & setup 1 08-04-2007 11:03 AM
No DVD Region Tab Raeldor Vista hardware & devices 0 06-14-2006 08:35 PM


Vistax64.com 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 2005-2008

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 47 48 49 50 51