Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: GDI+
Hi
anybody have a idea how to create a drawing in vb picturebox?
The images must save as png and background must be transparent.
 
Kind regards
H
Posted 26-Jan-11 4:03am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Typically this is done using the Bitmap.MakeTransparent method.
 
Example here: http://msdn.microsoft.com/en-us/library/8517ckds.aspx[^]
 
[Update]
-------------
 
Relevant thread on S.O.:
 
http://stackoverflow.com/questions/388677/can-you-make-an-alpha-transparent-png-with-c[^]
  Permalink  
v2
Comments
Sandeep Mewara at 26-Jan-11 10:41am
   
Comment from OP:
still not transparent, should it not be something like 32bit png?
Nishant Sivakumar at 26-Jan-11 10:48am
   
To OP: show your code that's not working.
SAKryukov at 26-Jan-11 11:04am
   
My 5. Transparency is often misunderstood. I'm afraid more discussion will follow this question.
--SA
Nishant Sivakumar at 26-Jan-11 11:07am
   
Thanks. And yeah, based on the OP's response it doesn't seem as if he's got it right yet.
heinrich4J at 27-Jan-11 9:05am
   
nope, have not come right yet..!
Do any of you know where i can buy vb code (software code)? cant keep struggling with this.
I need a solution very soon....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 515
1 Maciej Los 340
2 Richard MacCutchan 265
3 BillWoodruff 225
4 Mathew Soji 155
0 OriginalGriff 8,804
1 Sergey Alexandrovich Kryukov 7,457
2 DamithSL 5,689
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 26 Jan 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100