[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-dancr-rbcatut

Zurück zum Archiv-Index

ruby-****@sourc***** ruby-****@sourc*****
2013年 3月 26日 (火) 03:07:59 JST


-------------------------
REMOTE_ADDR = 70.49.48.128
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut
-------------------------
@@ -359,7 +359,12 @@
          window.show_all
          Gtk.main
 
+    Feel free to experiment with both, the original Michael's version of stroke.rb of code above (12.3.1.2.1), and my version (12.3.1.2.1.B1) using the default scale(1, 1), rather than scale(120, 120). Most importantly, you have to realize that the two examples use different kinds of coordinate arguments in shape drawing methods. 
 
+    :Rule of thumb
+        (12.3.1.2.1.1R){{br}}
+
+        As a rule of thumb, for scale(1, 1) drawings you should use pixels, and for drawings whose scale argument values resemble image size in pixels (i.e. values in hundreds rather than single digits) you should use relative notation in the form of small fractions not much larger than 5 or 10. Though, if you insist and do not care to simplify your work, you can try using very large or very small fractions when needed. (For instance line thickness 0.01 on one end, and say 150 on the other, is rather disconcerting, if you are not an abstract minded person, and prefer to operate in with naked eye observable reality.) I just think, the above rule of thumb makes sense.
 
 
 # ------- AS PROMMISED Hiki Gtk With Cairo Module File -----------




ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index