Re: [Gimp-developer] difference between canvas_draw and draw_tool_draw functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

lists@xxxxxxxxxxxxxxxxx (Olivier) writes:

> what is the difference between for example
> gimp_canvas_draw_rectangle and gimp_draw_tool_draw_rectangle?

The GimpDrawTool API takes image coordinates while the (lowerlevel)
GimpCanvas API takes display coordinates.

> when should one use which function?

Whenever possible the tools should draw using the GimpDrawTool API
and only GimpDrawTool should use the GimpCanvas API.


Sven

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux