ruby-****@sourc*****
ruby-****@sourc*****
2013年 3月 20日 (水) 11:48:28 JST
------------------------- REMOTE_ADDR = 184.145.81.215 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-intro ------------------------- @@ -26,11 +26,31 @@ {{image_right("1201-DrwAreaWithStretchableBgImage-00.png")}} We will delve into our investigation of drawing surfaces, by rewriting the 'drawingareas.rb' program from chapter 11, turning the plain single colour background surface into a background adorned with an arbitrary image you load from an image file on your disk. +Needless to say, the main feature in this new version of the above drawing program from paragraph 11.1 is the dynamically re-sizable background, responding to users' changing the parent window containing the drawable area with any image you choose as the background. However, even more valuable aspect of this new 'drwar01-rsizble-stretched-pxb-bg.rb' program here is its exposure of the differences between the background surface and the drawings or 2D images user draws, paints or copies onto the background surface. - {{br}} {{image_left("1201-DrwAreaWithStretchableBgImage-both-s1.png")}} +{{br}} +# (12.1.1) +:'rsizble-stretched-pxb-bg.rb' program example notes: +(12.1.1){{br}} + +Let's now look at the program: + + + + +# (12.1.1.1) +:Programmer's Note: + + (12.1.1.1) + (HikiGtk module can be viewed and copied from section: 10.2.1.1 [((<Time To Start Using Object-Oriented Programming Paradigm|tut-gtk2-dnd-intro#Time To Start Using Object-Oriented Programming Paradigm>))]), however, as you will see after the next, not this (12.1.1), example, we are going to expand and upgrade our((*HikiGtk*))module to include background manipulation functionality. + + + +{{br}} +((*drwar01-rsizble-stretched-pxb-bg.rb*)) {{br}}