Windows Vista Forums
Vista Forums Home Join Vista Forums Donate 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

compound pens in WPF

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-12-2007   #1 (permalink)
avesty@gmail.com
Guest


 

compound pens in WPF

Hi,

In GDI+ it was possible to create compound pens using
SetCompoundArray. Is this possible in WPF? I've only just started
poking around, but it looks like the idea of pens/brushes is gone and
has been replaced by just brushes. Is that correct? If it is possible,
would anyone be able to tell me where in the relevant docs I could
look to find some info?

Cheers,

Ad.


My System SpecsSystem Spec
Old 03-23-2007   #2 (permalink)
WPCoder
Guest


 

Re: compound pens in WPF

Pens really are just brushes with a thickness. One alternative idea,
depending on what you're trying to accomplish would be to use the OnRender
method of UIElement and custom draw the lines needed to make the
CompoundArray pen. Depending on the complexity of the shape however, I
realize that could be extremely complicated. Unfortunately, the Pen class is
sealed so you can't override its behavior.

--Aaron
http://www.wiredprairie.us


<avesty@gmail.com> wrote in message
news:1173721029.941059.311430@n33g2000cwc.googlegroups.com...
> Hi,
>
> In GDI+ it was possible to create compound pens using
> SetCompoundArray. Is this possible in WPF? I've only just started
> poking around, but it looks like the idea of pens/brushes is gone and
> has been replaced by just brushes. Is that correct? If it is possible,
> would anyone be able to tell me where in the relevant docs I could
> look to find some info?
>
> Cheers,
>
> Ad.
>


My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard/Mouse compound device won't install Tom Scales Vista hardware & devices 0 05-08-2007 10:15 AM
CPU Thermal Compound and Thermal Grease. Which is better? GT Vista hardware & devices 7 05-04-2007 12:09 AM


Update your Vista Drivers Update Your Vista Drivers Now!!

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
Page generated in 0.24331 seconds with 10 queries