Thanks everyone,
I'll try all the suggested solutions and pick best that works for me.
2017-03-21 11:20 GMT+00:00 Joël Krähemann :
> Hi
>
> If you do it using cairo you might be interested in the following function.
>
> cairo_image_surface_get_data()
>
> You get the pixels stored in your picture.
On Sun, 2017-03-19 at 22:12 +, Marcin Kolny wrote:
> I'd like to write very simple application for drawing lines.
You can restrict all drawing operations to a rectangle enclosing your
line. For each move with button pressed, fill that rectangle with
background color and then draw the line with
Hi everyone,
I'd like to write very simple application for drawing lines.
1) User press button - app saves x and y coordinates
2) User moves the mouse - app dynamically draws potential line on each
mouse move event
3) User releases button - app "saves" the line on the canvas.
I've tried to modi
Hi
If you do it using cairo you might be interested in the following function.
cairo_image_surface_get_data()
You get the pixels stored in your picture. It can be restored using memcpy()
what is actually quiet fast.
Bests,
Joël
On Tue, Mar 21, 2017 at 8:26 AM, F.Reiter wrote:
> Hallo,
> for
Hallo,
for lightning-fast, xor, rubberbanding, zooming, clipping ..
why not consider Open-GL ?
Franz
(https://github.com/gcad3d/gcad3d)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-deve
#x27;s clipping path, although I have no experience
with that performance-wise.
Roger Davis
Univ. of Hawaii
From: Marcin Kolny
To: gtk-app-devel-list@gnome.org
Subject: Re-drawing GtkDrawingArea surface on motion-notify-event
Message-ID:
Content-Type: text/plain; charset=UTF-8
Hi eve
/draw_rectangle1.c
Cairo is pretty fast drawing. It take quite a bit to slow it down.
Eric
-Original Message-
From: Marcin Kolny
To: gtk-app-devel-list
Sent: Mon, Mar 20, 2017 1:25 pm
Subject: Re-drawing GtkDrawingArea surface on motion-notify-event
Hi everyone,
I'd like to
The key is to not draw directly, but to invalidate one or more rectangles
needed to for changing the image from the old to the new one.
I worked on this problem some years ago and I think my solution is very
relevant to your question.
See the gtk3 branch at: https://github.com/dov/dovtk-lasso .
Hi everyone,
I'd like to write very simple application for drawing lines.
1) User press button - app saves x and y coordinates
2) User moves the mouse - app dynamically draws potential line on each
mouse move event
3) User releases button - app "saves" the line on the canvas.
I've tried to modi