Jump to content

need exemple or function to get pixel alpha from pic


Luigi
 Share

Recommended Posts

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

Link to comment
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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...