This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Using API to generate special effect..


Using API to generate special effect..

Postby mamahow » Jul 15, 2008 @ 3:54am

mamahow
pm Member
 
Posts: 17
Joined: Jul 1, 2008 @ 10:29am


Postby edge » Jul 15, 2008 @ 10:34am

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby igolovin » Aug 24, 2009 @ 9:01am

igolovin
pm Member
 
Posts: 8
Joined: Aug 24, 2009 @ 8:37am


Postby edge » Aug 25, 2009 @ 8:27am

Hi,

For your effect we recommend using RGBA surfaces. Store the image with your transparent pixels in a PNG and load it on a E2DSurfaceRGBA. You can also load your current image, and use replacecolor to replace black (rgba: 0, 0, 0, 255) to black with 50% transparency (rgba: 0, 0, 0, 128).
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby igolovin » Aug 25, 2009 @ 8:36am

Thanks for your reply. Using RGBA surfaces, of course, the obvious option. But I was hoping to use RGB surfaces, because they support the scaling and rotation. But if this is impossible, I have to use RGBA surfaces.
igolovin
pm Member
 
Posts: 8
Joined: Aug 24, 2009 @ 8:37am


Postby edge » Sep 3, 2009 @ 5:25pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby igolovin » Sep 16, 2009 @ 11:28am

Hi,

Thanks for your reply. You offered a good solution but my sprites already contain areas marked as a shadow using some color.
igolovin
pm Member
 
Posts: 8
Joined: Aug 24, 2009 @ 8:37am


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron