[Qt-interest] Image problem
trinathpujari
trinathpujari at tataelxsi.co.in
Mon May 17 15:43:35 CEST 2010
Hi All,
Sample code is below .......
Here image1 is big QImage... I am updating some part here and
drawing this image later. I want to store that image at here is their
any alternative
for ( xcount = startx; xcount < endx; xcount++)
{
for ( icount=starty; icount<(endy); icount++ )
{
if(QColor((image1->pixel(QPoint(xcount,icount))) == bcolor)
{
image1->setPixel(QPoint(xcount,icount),fcolor);
}
else if(QColor(image1->pixel(QPoint(xcount,icount))) == fcolor)
{
image1->setPixel(QPoint(xcount,icount),bcolor);
}
else
{
// printf("None of the color selected\n");
}
}
}
Please anyone knows how to do this please tell me...............
Thanks
Trinath
More information about the Qt-interest-old
mailing list