Sign in to follow this  
Followers 0
Luigi

need exemple or function to get pixel alpha from pic

2 posts in this topic

Hi forum, I have some pic like this: post-53968-0-94300300-1416227721.png

This png image with transparency and I need obtan an array with same dimensions of imagen, and

if array[x,y] is alpha full, the value is 0,

else have any kind of color, the value of array[x,y] is 1.

like this

00000000
01111110
01000010
01000010
00100100
00100100
00111100
00000000
 
Someone can suggest an example or function like this?

 

Thansk, Detefon


Visit my repository

Share this post


Link to post
Share on other sites



You can use GDI+ functions to read out the pixel color information -> _GDIPlus_BitmapGetPixel or using _GDIPlus_BitmapLockBits / _GDIPlus_BitmapUnlockBits.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0