Thanks for reply ^NyAw^.
But image prossesing program like GIMP, Adobe photoshop do this. I can select ellipse area and can copy this area from image and paste anywhere i want. I want to do like on GIMP and Photosshop.
Thanks for reply ^NyAw^.
But image prossesing program like GIMP, Adobe photoshop do this. I can select ellipse area and can copy this area from image and paste anywhere i want. I want to do like on GIMP and Photosshop.
Hi,
I think that QGraphicsView can help you.
Òscar Llarch i Galán
Going further in the direction of copying rectangles, you can then set a mask to your image, by drawing in a QBitmap an ellipse of the same size.
I think you can try this -
copy the rectangle from the image which bounds the ellipse. Then traverse the rect and set the pixels transparent which are not in ellipse.
This might not be very efficient but you can optimise or look for some fast algo for determining points inside a ellipse. HINT : you can check the border areas,,, ellipse will cover most of the inner area.
Bookmarks