ruby-****@sourc*****
ruby-****@sourc*****
2013年 4月 3日 (水) 15:35:33 JST
------------------------- REMOTE_ADDR = 70.49.48.128 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut-dwc ------------------------- @@ -261,7 +261,11 @@ cr.target.write_to_png("setsourcegradient-nonGtkCr-120:120x120.png") puts "DEBUG: cr.target.class=#{cr.target.class}" #=> Cairo::ImageSurface - {{br}} + +{{br}} +:Image sources + (12.3.2.1.3){{br}} + Images include both surfaces loaded from existing files with ((<cairo_image_surface_create_from_png()|URL:http://www.cairographics.org/manual/cairo-PNG-Support.html#cairo-image-surface-create-from-png>)) and surfaces created from within cairo as an earlier destination. As of cairo 1.2, the easiest way to make and use an earlier destination as a source is with ((<cairo_push_group()|URL:http://www.cairographics.org/manual/cairo-cairo-t.html#cairo-push-group>)) and either ((<cairo_pop_group()|URL:http://www.cairographics.org/manual/cairo-cairo-t.html#cairo-pop-group>)) or ((<cairo_pop_group_to_source()|URL:http://www.cairographics.org/manual/cairo-cairo-t.html#cairo-pop-group-to-source>)). Use cairo_pop_group_to_source() to use it just until you select a new source, and cairo_pop_group() when you want to save it so you can select it over and over again with ((<cairo_set_source()|URL:http://www.cairographics.org/manual/cairo-cairo-t.html#cairo-set-source>)).