[Qt-interest] paint one image over other continously

Andre Somers andre at familiesomers.nl
Fri Sep 25 15:24:13 CEST 2009


Ulf-Alexander v. Ceumern-Lindenstjerna wrote:
>
>>> or overwrite all white parts in the source image with transparent
>>>       
>> color (Qt::transparent) and then paint
>>     
>>> the entire source image above the target image.
>>>       
>> I thought in this case this could be possible solution, but I wonder
>> how to do that?
>>     
>
> I guess you have to iterate manually over all pixels, get the color of
> each pixel and check if the color is white.
> If it is white, replace the pixel color with a transparent one. This
> would be the straight-forwards approach. There might be a more elegant
> way, but I am just guessing here.
>
>   
The white you saw behind the images, is probably the white of your mail 
client. I opened the images in The Gimp, and they already were 
transparent. This makes the problem much easier... Simply drawing each 
image over the buffer image as they come in should work just fine.

André

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090925/e18f2d25/attachment.html 


More information about the Qt-interest-old mailing list