Technology Questions

Go Back   Technology Questions > Hardware Questions > Electronics > Pocket PC General

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-15-2007, 10:52 AM
Manish
Newsgroup Contributor
 
Posts: n/a
Bitmap button problem

Hi

Platform: using VS2005 C# for WM5.0 base PDA

I am making one Bitmap button(owner draw). What i have done is i am
drawing
image on the button in onPaint() using e.drawimage ; I am also taking
care
that my bit map becomes transparent(all corners) . For the same i am
using
ImageAttributes attr = new ImageAttributes()
attr.SetColorKey(bmp.GetPixel(0,0), bmp.GetPixel(0,0));

In this case all the corners of my bitmap are becoming transparent and
showing same color(red color) which is my background color.(Here back
ground
is my application's main form which is having back color = red) .

Till this point every thing is ok .

My problem is " if i load an image on the main form " . In that case
above
bitmap buttons are still showing red color corner ...?? which is
correct only
in above case, but in this case when an image is loaded on the main
form ,Bit
map corners should display color of images which is loaded on the
form,but it
is still showing Red corner (which is the back color of main form.)

How can i get rid of this problem ..

Please suggest ...


Regards
Manish Budhia

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 01-15-2007, 10:52 AM
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE 'Save Image As' Bitmap - Actual Problem Identified Greg Steirer Internet Explorer 8 03-28-2009 02:25 PM
Need to display many bitmap files AAaron123 Windows XP 5 10-17-2008 12:55 AM
I want to be able to create a new bitmap... Max Rockatanski Windows Vista 3 01-24-2007 11:15 AM
Wallpaper bitmap CPU usage? Ed Warner Windows XP 0 01-04-2007 06:30 AM
Bitmap SysTrayMenu missing Bellstar Windows XP 2 01-04-2007 03:34 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 09:08 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0