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

Bitmaps with transparent background in WPF

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


 

Bitmaps with transparent background in WPF

Hello,

I'm doing my first steps with WPF and I want to create a ToolBar in XAML
like this.

<ToolBarTray DockPanel.Dock="Top" >
<ToolBar Band="1" BandIndex="1">
<Button><Image Source="Resources\NewDocumentHS.BMP"/></Button>
<Button><Image Source="Resources\GoToParentFolder.bmp"/></Button>
<Separator/>
....
</ToolBar>
</ToolBarTray>

For the bitmaps I want to take the images from
C:\Program Files\Microsoft Visual Studio
8\Common7\VS2005ImageLibrary\bitmaps\commands\16color
C:\Program Files\Microsoft Visual Studio
8\Common7\VS2005ImageLibrary\bitmaps\commands\24bitcolor
C:\Program Files\Microsoft Visual Studio
8\Common7\VS2005ImageLibrary\bitmaps\commands\32bitcolor

How can I paint the images without the background color.

If I'm using the PNG images the tollbar will be bigger and the images are a
little bit out of Focus.

Ralf


My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitmaps from streams - duplicated data in memory? Chris Ashley .NET General 1 06-20-2008 01:35 PM
Sidebar transparent background? denz Vista General 3 12-19-2007 10:06 PM
Windows mail - cant paste bitmaps into mail body Craig Broadbear Vista mail 1 02-20-2007 10:29 PM
Bitmaps Travis King Vista General 0 08-31-2006 08:18 PM
MenuItem's transparent background Phil Avalon 2 05-31-2006 07:12 AM


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