This is a child page. You can use Parent in the quick nav bar at the top or the bottom of the page to navigate directly back to the parent of this page. Some child pages are more than one level deep, and in that case will require more than one Parent click to reach the outermost document level.

16.96.7 - Image and Mask Exchange Script Commands

In the context of a script, it is often very useful to be able to convert from action images to masks and vice-versa. Masks are always the same size as the action image, which makes this work very well without requiring scaling or other non-exact procedures.

Since F/x maintains separate image and mask stacks as described on the previous two pages, the natural place for a script to do this is using those stacks. The following commands provide a powerful set of tools for tasks that utilize masks and images in multiple roles.

PUSHIAM (Mnemonic: Push Image As Mask)

This pushes the current image as a mask onto the mask stack. White is 100% selected, black is not selected. Values in between black and white represent partially selected pixels.

See also:

  • PUSHMAI
  • PULLIAM
  • PULLMAI
PUSHMAI (Mnemonic: Push Mask As Image)

This pushes the current mask as an image, to the image stack. 100% selected comes out as white, not selected comes out as black. Values in between black and white represent partially selected pixels.

See also:

  • PUSHIAM
  • PULLIAM
  • PULLMAI
POPMAI and PULLMAI (Mnemonic: Pull Mask as Image)

This pulls the from the mask stack to the current image. 100% selected comes out as white, not selected comes out as black. Values in between black and white represent partially selected pixels.

See also:

  • PUSHMAI
  • PUSHIAM
  • PULLIAM and POPIAM
POPIAM and PULLIAM (Mnemonic: Pull Image as Mask)

This pulls the from the image stack to the mask. white comes out as 100% selected, black comes out as not selected. Values in between black and white represent partially selected pixels.

See also:

  • PUSHMAI
  • PUSHIAM
  • PULLMAI and POPMAI
Keyboard Navigation
, Previous Page . Next Page t TOC i Index o Operators g Glossary
WinImages F/x, Morph and all associated documentation
Copyright © 1992-2007 Black Belt Systems ALL RIGHTS RESERVED Under the Pan-American Conventions
WinImages F/x Manual Version 7, Revision 6, Level A

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7
Page 265