ruby-****@sourc*****
ruby-****@sourc*****
2013年 4月 2日 (火) 08:57:01 JST
------------------------- REMOTE_ADDR = 70.49.48.128 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?Cairo%3A%3AContext ------------------------- @@ -10,7 +10,7 @@ Whether you create a cairo context in Ruby/Gtk or in a non-GUI character based programming environment, it is eventually bound to a drawing surface, which indeed can be some kind of backend, either a file or a GUI window (see Ruby Cairo Tutorial, section 12.3.0.1.1 ((<Cairo Backends|tut-gtk2-dancr-rbcatut-intro#Cairo Backends>)) to learn about surfaces Gtk/Cairo environment does not support). -Whatever the target drawing surface is, you use the drawing options on the cairo context, to create shapes with methods like cr.move_to() and cr.line_to(), and then draw shapes with cr.stroke() or cr.fill(), where, indeed, the receiver object((*"cr",*))is cairo context created either with the Gdk::Drawable#create_cairo_context method in Gtk/Cairo environment, or by combining a creation of a drawing surface and binding it to to the cairo context created by the ((<Cairo:;Context.new(surface)|URL:http://cairo.rubyforge.org/doc/en/cairo-context.html#label-4>)) method available from in the 'stand-alone' Cairo Graphics Library. +Whatever the target drawing surface is, you use the drawing options on the cairo context, to create shapes with methods like cr.move_to() and cr.line_to(), and then draw shapes with cr.stroke() or cr.fill(), where, indeed, the receiver object((*"cr",*))is cairo context created either with the Gdk::Drawable#create_cairo_context method in Gtk/Cairo environment, or by combining a creation of a drawing surface and binding it to to the cairo context created by the ((<rCairo:_:Context.new(surface)|URL:http://cairo.rubyforge.org/doc/en/cairo-context.html#label-4>)) method available from in the 'stand-alone' Cairo Graphics Library. {{br}}