ImagerFunctionDeviceDoc.tioga
Mik Lamming, October 16, 1985 5:00:35 pm PDT
Last edited by: Mik Lamming - October 16, 1985 5:17:14 pm PDT
ImagerFunctionDevice
CEDAR 6.0 — FOR INTERNAL XEROX USE ONLY
ImagerFunctionDevice
Mik Lamming
© Copyright 1985 Xerox Corporation. All rights reserved.
Abstract: An imager device that enables simple image processing functions to be focussed upon irregularly shaped sections of a pixelmap. The target areas are defined using Imager.Mask operations. Useful for clients who want to experiment with alpha-channels.
Created by: Mik Lamming
Maintained by: Lamming^.pa
Keywords: alpha-channel, imager, PixelMap
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
Principles of operation:
An imager device that enables simple image processing functions to be focussed upon irregularly shaped sections of a pixelmap. The target areas are defined using Imager.Mask operations. Useful for clients who want to experiment with alpha-channels.
For each mask operation invoked through the imager interface this device applies a client supplied function to each affected pixel in the deviceMap. To mimic a conventional imager device a client function would copy appropriate pixels from the current constantColor or sampledColor into the deviceMap. More interesting behaviours may be produce if the client function uses both source pixels, e.g. the current color, and destination pixels, e.g. the deviceMap to compute the final value of the deviceMap.
Because the characteristics of the deviceMap are not fixed the device cannot understand how regular colors (e.g. colors that might be generated by ImagerColor) are to be transformed into a form that can be processed by the client function. Neither can it understand the regular color operators (available through ImagerColorOperator) that are used to specify sampled colors. To alleviate these problems the device assumes that all colors submitted to it are in a device dependent form - see MakeConstantColor. When using Imager.SetSampledColor the ColorOperator parameter will be ignored and the pixel array data will be passed to the client function unmodified.