[cairo] Cropping Tool
Gerdus van Zyl
gerdusvanzyl at gmail.com
Sun Jul 13 02:45:58 PDT 2008
Drawing the rectangle with dotted line is as simple as: (in
Python,C-calls are similar)
setColour(ctx,"#000000") <-- non cairo function set colour
setColour(ctx,"#FFFFFF") <-- non cairo function set colour
Cairo can't "remove" anything it has drawn. So you would need to
seperately draw your image and then draw the selection on top, then if
there is no selection/canceled you only draw the image.
On Fri, Jul 11, 2008 at 11:08 PM, Mr SZ <sk8in_zombi at yahoo.com.au> wrote:
> I'm using a cairo widget in pygtk to create a simple image cropping
> application.Can anyone suggest me a way to draw thin dotted lines along the
> rectangle selected by the user(the to be cropped area).and then remove the
> rectangle when user cancels the operation.
> " life isn't heavy enough,it flies away and floats far above action"
> Start at the new Yahoo!7 for a better online experience - Start Here.
> cairo mailing list
> cairo at cairographics.org
More information about the cairo