I need to change the value of the alpha component when a pixel contains a specific color for a TBitmap of 32 bits, I know about the ScanLine property to access the bitmap data, but i can’t figure out how change the alpha component of each pixel.
Share
This is a basic implementation
First you need define a record to hold the ARGB structure
Then you must define a array of TRGB32 to cast the Scanline and get and set the values.
Check this sample method
Also you can take a look to this unit that i wrote to manipulate 32 bit bitmaps