![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| IC Diamond 7 The Best Compound | Overclocking & Cooling | |||
| Thermoelectric Compound Breakthrough Could Alter the Materials of the Future | Vista News | |||
| Keyboard/Mouse compound device won't install | Vista hardware & devices | |||
| CPU Thermal Compound and Thermal Grease. Which is better? | Vista hardware & devices | |||