OS2 World.Com Forum
2012.05.24, 06:59:09 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Image Alpha + Transparency  (Read 3389 times)
jep
Global Moderator
Sr. Member
*****
Posts: 402


View Profile
« on: 2011.06.14, 15:00:03 »

Hello,

I've written a simple C++ class to take care of displaying images that contain transparency and/or alpha with the help of GBM by Heiko Nitzsche. I've also tried to make it more robust and forgiving than the examples I've seen elsewhere, so that it can handle situations/configurations where e.g. transparency support isn't available (SVGA graphics driver).

I've borrowed one of the images that come with the screen saver that display a nice clock made by Doodle.

I do however need your help with the provided example to:
a) Get smoother edges as compared to if you remove // in front of the line MeterImage.mapTransparancy2Color( CLR_PALEGRAY );
b) Reduce memory consumption as the code has to be rewritten to take care of it better.
c) A function to allow it to drawAt( HPS hps, int x, int y )
d) Allow it to share bitmaps to mix several images together
...

Your help is greatly appreciated
//Jan-Erik

Compiler: OpenWatcom
Linker:
Lib-directories: ?:\...\GBM\lib.wat
Libraries: gbm.lib,gbmmem.lib,gbmscale.lib
C++ compiler:
Inlude-directories: ...;?:\...\gbmos2
Logged
jep
Global Moderator
Sr. Member
*****
Posts: 402


View Profile
« Reply #1 on: 2011.07.05, 12:29:06 »

6 of you have tried it... any hint on how to adjust it (near line 450 perhaps) so that it look better?!
« Last Edit: 2011.07.08, 16:48:26 by jep » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!