Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 188
Registered: ‎04-07-2013
My Device: BlackBerry Z10
My Carrier: Telus

Make some part of an Image Transparent

Hi,

 

I would like to make some part of an Image become transparent and save it to a file..

I am wondering if anyone could guide me on how to do this? I mean what should I look into to achieve this?

 

Many thanksss

jayvdiyk.com
Retired
Posts: 74
Registered: ‎07-22-2008
My Device: BlackBerry Z10
My Carrier: N/A

Re: Make some part of an Image Transparent

You can use libpng to manipulate the image and alpha values.  The alpha value is stored in the RGBA format and is 8-bit value ranging from 0 to 255.    I would reocmmend search for "libpng transparent c++" on google for more information on this topic. 

Thanks,
Pratik Sapra
Gaming & Apps Consultant
Developer Relations
@pratiksapra