palib-dev.com
September 07, 2010, 08:26:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: PAlib is no longer maintained, sorry folks. Sad
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Magenta as transparent color for loading 16bit/16bit-fake bitmaps.  (Read 198 times)
Trenton_net
Jr. Member
**
Offline Offline

Posts: 78


View Profile
« on: January 07, 2010, 01:28:49 PM »

Hi Everyone,

Right now I've moddified my copy of Palib to include support for magenta as a transparent color in BMPs. I did so by modifying PA_LoadBmpToBuffer to ignore the Magenta color, then wrapped it in a new function called PA_LoadBmpToBufferWithTransparency. I also updated the header files as well as created new functions, like PA_LoadBmpWithTransparency to take advantage of this feature, leaving the original functions stock.

Everything seems to work great so I was wondering if this could be included in future builds of Palib? It would only require very minor changes and I think it's quite a useful feature!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.049 seconds with 19 queries.