ImagerMaskContextDoc.tioga
Lamming.pa, July 31, 1986
Last edited by: Mik Lamming - August 5, 1986 1:28:02 pm PDT
ImagerMaskContext
CEDAR 6.1 — FOR INTERNAL XEROX USE ONLY
ImagerMaskContext
ImagerMaskContext
Mik Lamming
© Copyright 1986 Xerox Corporation. All rights reserved.
Abstract: An imager context that generates single color masks
Created by: Lamming.pa
Maintained by: Mik Lamming <Lamming.pa>
Keywords: Imager
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
1. ImagerMaskContext
This is a context that maps all SetColor operations into a single color. This is useful for making fixed color mask using a display procedure that normally generates multi-colored output.
Here is a bit of interpreter script that shows how the RandomImager can be made generate fixed color output
← RandomImagerImpl.Setup[]
← &ca ← ImagerViewer.Create[[name: "Random Imager", iconic: FALSE], pixels]
← &c ← ImagerMaskContext.Create[&ca, ImagerColor.ColorFromAtom[$Red]];
← RandomImagerImpl.Run[&c]