How to add new QImage to the left side of old QImage??
Hi,
I have a new QImages coming via network socket . I want t new one to the left of old QImage which I stored. How to add two QImages so new part comes to the left side only?
Thanks
Re: How to add new QImage to the left side of old QImage??
Re: How to add new QImage to the left side of old QImage??
Quote:
Originally Posted by
anda_skoa
Add to where?
Cheers,
_
Add to old QImage. The result is printed via QLabel.
Re: How to add new QImage to the left side of old QImage??
So you want to create a new image that is the combination of the old image and the new image?
Cheers,
_
Re: How to add new QImage to the left side of old QImage??
Quote:
Originally Posted by
anda_skoa
So you want to create a new image that is the combination of the old image and the new image?
Cheers,
_
Yes anda_skoa.
Thanks for your time.
Re: How to add new QImage to the left side of old QImage??
1) Create a new QImage that has the size necessary to hold both orignal images side-by-side.
2) Use a QPainter on that image to draw the other two images into it.
Cheers,
_
Re: How to add new QImage to the left side of old QImage??
Quote:
Originally Posted by
anda_skoa
1) Create a new QImage that has the size necessary to hold both orignal images side-by-side.
2) Use a QPainter on that image to draw the other two images into it.
Cheers,
_
Dear Anda_skoa,
Thanks for your time.
Image I painted both the images. Next time new QImage comes. How do I paint this new one to the left of previous two images and so on .......with every new Image coming.
Re: How to add new QImage to the left side of old QImage??
You just do the same thing again.
Cheers,
_