Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

32bit Bitmap (a, r, g, b)

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
i have an instance of Bitmap and have set the pixels to various 32bit colours. i want to add the Bitmap to a Graphics object, without losing the alpha data.

at the moment i convert said Bitmap to a HBitmap by using Bitmap.getHbitmap, then to an Image using Image.FromHbitmap; but when i put the image on the screen using g.DrawImage it appears opaque. at what point is it doing this and how can i stop it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top