[magick-users] GetFillColor and extract_info
Anthony Thyssen
anthony at griffith.edu.au
Wed Dec 20 23:06:07 CST 2006
omicronpersei8 at imagemagick.org on wrote...
| > provide an offset to the Draw functions when used with the tile
| > option, which is exactly what I was hunting for.
|
| GetFillColor() is called by the object and text renderer. If no fill
| pattern is available it uses the fill color otherwise it uses the fill
| pattern to paint the object or text with the pattern. As you surmised
| extract_info.{xy} sets the initial pattern offset which defaults
| to 0,0. You can set these fields when you read the pattern as in
| readImage('image.gif[+13+20]'). However, we probably should include a
| method in Magick++ to support this field but its possible we may want to
| use some other way to set the pattern offset since the extract_info field
| is already overloaded. It would make the most sense to add a new member in
| the draw_info structure to specify the pattern offset. Given that why
| not post a few lines of code of how you'd like to take advantage of a
| pattern offset and we'll figure out a way to define new members to the
| draw_info structure and a way to set the members in Magick++.
Hmm interesting...
A few tests...
convert -size 60x60 tile:tile_weave.gif x:
convert -size 60x60 tile:tile_weave.gif'[+5+5]' x:
produces the same resulting image.
Same with...
convert -size 60x60 xc: -tile tile_weave.gif \
-draw 'color 0,0 reset' x:
convert -size 60x60 xc: -tile tile_weave.gif'[+5+5]' \
-draw 'color 0,0 reset' x:
I also tried quite a number of other ways including...
convert tile_weave.gif +repage +5+5 png:- |\
convert -size 60x60 xc: -tile - -draw 'circle 30,30 20,5' x: &
Setting a tile pattern in this way just does not seem effect the offset
of the pattern.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
Kite(n): An offering to the wind gods proffered on a line that
they find sufficiently attractive to accept when it is dangled
in front of them. -- Anne Sloboda, c/o <ecurtis at icis.on.ca>
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list