Hi,
I am trying to change the pixel value of image by using setPixel() method.
It is changing the RGB values successfully but not changing the Alpha value.
It always shows value 255.
The code is like this
QImage image = pixmap->tpImage();
int width = image.width();
int height = image.height();
for( i = 0 ; i < height; i++)
{
for( j = 0; j < width; j++ )
{
image.setPixel(j,i, QColor(0,0,0,0).rgb()) ;
}
}
Thanks in advance
~Sanjay
Bookmarks