Skip navigation.

Ambassador

The Royal C++ Embassy

Found an old project!

, , , ,

I have found my sample code about transparency and creating non-rectangular window shapes for Windows Mobile while digging archives.

The project is a proof-of-concept work, where I load a PNG image, SetWindowRgn the window of that shape, and paint alpha image of the background bitmap (today screen, in our sample). PNG is loaded by platform, if platform supports it. If not, it can use libpng. Alpha blitting is done in the code. I have written my alpha blitting code to blit foreground bitmap (read from PNG) over the background bitmap (taken from GDI) then copy this into final bitmap.

When PNG is loaded, we respect alpha. Regions that has alpha value of 0 will be excluded from window region. When blitting to background bitmap, alpha value of pixel in foreground bitmap is considered.





Overlay image Windows Mobile 5.0 Smartphone Windows Mobile 5.0 Pocket PC:


This is not some kind of "widget" or used anywhere in Opera code, just for self-satisfaction!

IRC Meet-up with Turkish user communityOpera 8.65 Beta for Windows Mobile

Comments

trapalas 29. January 2008, 14:35

That's cool!
Could you publish the code or mail it to me?
Regards

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

Download Opera, the fastest and most secure browser
December 2009
S M T W T F S
November 2009January 2010
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