"Rick Mabry" on  wrote...
|       
| > > I propose STACK:N as the "built-in" name,
| > 
| > We use mpr: for this purpose.  You can write an image with -write mpr:tile,
| > for example, and refer to it later as -tile mpr:tile.  Writing mpr: is
| > practically free since only the address of the image is noted, no image is
| > actually written.
| 
| Fabulous, that is even better (to use a name of one's choice). 
| 
| I take it that mpr: is undocumented (until now)?
| 
| By the way, is the doc right on -write? 
| 
It is documented in IM Examples in 'File  Handling'.
  http://www.cit.gu.edu.au/~anthony/graphics/imagick6/files/#mpr

In fact its major use is for either -tile  or  -map

See also Canvas Creation, "Tiling using in-memory images"
   http://www.cit.gu.edu.au/~anthony/graphics/imagick6/canvas/#tile_memory

Which lists MPR: with two other methods of doing the same thing.


| "The image sequence following the -write filename option is written out, and 
| processing continues with the same image in its current state if there are 
| additional options. To restore the image to its original state after writing 
| it, use the +write filename option."
| 
I have not  played with +write as I generlly use \(..\) and -clone  to
make copies of images I need to keep unchanged.

| It seems to me that the image sequence *preceding* the -write should be (and 
| is) written. 
| 
| convert   ( -size 50x50 xc:#aabbcc -fill blue -draw "polygon 7,38, 32,4 32,46 
| 7,12 47,25 " -write mpr:mystar ) -size 500x500 xc:#ffcccc  -tile mpr:mystar -
| draw "polygon 49,396 327,14 327,486 49,104  498,250" -delete 0 filled.png
| 
NOTE, there is no need to start with parenthesis, as you start with a
blabk image sequence anyway.  After writing a image to a Mpr: you often
+delete the image from the current image sequence, to start fresh.

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
                   I really hate this damn machine,
                    I wish that they would sell it.
                     It never does quite what I want,
                      Only what I tell it.
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to