ruby-****@sourc*****
ruby-****@sourc*****
2013年 3月 27日 (水) 23:04:38 JST
------------------------- REMOTE_ADDR = 70.49.48.128 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut ------------------------- @@ -588,7 +588,7 @@ The ((<cairo_mask()|URL:http://www.cairographics.org/manual/cairo-cairo-t.html#cairo-mask>)) and ((<cairo_mask_surface()|URL:http://www.cairographics.org/manual/cairo-cairo-t.html#cairo-mask-surface>)) operations allow transfer according to the transparency/opacity of a second source pattern or surface. Where the pattern or surface is opaque, the current source is transferred to the destination. Where the pattern or surface is transparent, nothing is transferred. :Ruby Cairo Library Fails To Support Gradients - (12.3.1.2.5.A1){{br}} + (12.3.1.2.5.A1){{br}} {{br}}{{image_right("1203-p08-mask-in-C.png")}} # Your code goes between the two dashed lines: @@ -606,7 +606,7 @@ cr.mask(radialg) # -- your code - end ------------------------------------------- -e- - The above code in Ruby is completely unsupported. While ((*Cairo.pattern_create_linear*)) and ((*Cairo.pattern_create_radial*)), nor ((*Cairo::Context#add_color_stop_rgb/rgba*)) and ((*Cairo::Context#add_color_stop_rgb/rgba*)) do not exist at all, "Cairo::Context#set_source" and "Cairo::Context#mask" are not adequately documented, most likely because their parameters also are nowhere explained nor mentioned except in error messages. Namely, the line "cr.set_source(linearg)" would produce the following error message: ((*"`set_source': not a cairo pattern"*)), and the line "cr.mask(radialg): ((*"`mask': not a cairo surface".*)) + The above code in Ruby is completely unsupported. While "Cairo.pattern_create_linear" and "Cairo.pattern_create_radial", nor "Cairo::Context#add_color_stop_rgb/rgba" and "Cairo::Context#add_color_stop_rgb/rgba" do not exist at all, "Cairo::Context#set_source" and "Cairo::Context#mask" are not adequately documented, most likely because their parameters also are nowhere explained nor mentioned except in error messages. Namely, the line "cr.set_source(linearg)" would produce the following error message: ((*"`set_source': not a cairo pattern"*)), and the line "cr.mask(radialg)" blows up with: ((*"`mask': not a cairo surface".*))