VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



FYI: 32bpp pARGB, ARGB Detection

by LaVolpe (66 Submissions)
Category: Graphics
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (8 Votes)

Now that we are getting into the age of alphablending, PNGs, etc, wouldn't it be nice to offer ability to display 32bpp alpha bitmaps without having to know in advance if it indeed uses the alpha channel or whether or not the bitmap has its RGB bytes pre-multiplied? Try this out. It is a simple project wrapped around a routine that attempts to let you know those things a runtime. The project has some tips, shows a simple way to use AlphaBlend with non-premultiplied bitmaps and an pretty effective way to use GDI+ with 32bpp alpha bitmaps. Two test images are included in the RES file, but other than that, happing hunting for 32bpp alpha bitmaps, unless you care to create your own like I did for this test project.

Rate FYI: 32bpp pARGB, ARGB Detection

Download FYI: 32bpp pARGB, ARGB Detection

Download FYI: 32bpp pARGB, ARGB Detection (41 KB)

FYI: 32bpp pARGB, ARGB Detection Comments

No comments have been posted about FYI: 32bpp pARGB, ARGB Detection. Why not be the first to post a comment about FYI: 32bpp pARGB, ARGB Detection.

Post your comment

Subject:
Message:
0/1000 characters