This callback interface provides MoaMmImage manipulation functions and
support for image object (interface new to Director 8.5). Most of the methods
in this inteface have a direct correspondance with the lingo imaging commands.
Please see the Director 8.5 documentation for more information about image
objects and image methods.
Pointer to a MoaMmValue that contains a member reference for a palette member. Use
NULL for a missing palette reference. The movie default palette is used.
pResultImage
Pointer to a MoaMmValue that will receive the new image object.
Returns
MoaError
Description
Creates a lingo image object based upon the passed in parameters.
Pointer to an open Moa stream that references a file with image data.
pProgressCookie
Pass NULL for pProgressCookie if all data is available in the stream. Otherwise
pass in the address of a pointer that will be used to store a cookie.
pResultImage
Pointer to a MmValue that will receive the destination image object
Returns
MoaError
Description
Takes an open PIMoaStream and reads (and parses) an image from a file format.
If pProgressCookie is non-NULL, a cookie is allocated and can be passed in
to UpdateImageFromStream. In this case ReleaseProgressCookie
must be called to deallocate the cookie.
Pointer to a MoaMmValue that contains an image object.
pImageInfo
Pointer to a MoaMmImageInfo structure that will be filled with
the information about the passed in image.
Returns
kMoaDrErr_ImageExpected is returned if pImage does not reference an image object
Description
Takes a MoaMmValue containing an ImageRef and returns a filled out MoaMmImageInfo structure.
This routine is the best way to find out if a MoaMmValue contains a reference to an image object/
Pointer to a MoaMmValue that contains the destination image object
pSourceImage
Pointer to a MoaMmValue that contains the source image object
pDestRectOrQuad
Pointer to a MoaMmValue that contains the destination rectangle or quad for the copy
pSourceRect
Pointer to a MoaMmValue that contains the source rectangle
pPropList
Pointer to a MoaMmValue that contains a property list with various
parameters used for modifiying the copy. Use NULL for a missing property list
Returns
MoaError
Description
Does a blit from the source image to a destination image using either a
destination quad or rectangle, a source rectangle and various ink parameters.
This method provides the same functionality as the lingo image.copyPixels
command. The property list can contain the following items:
#color - lingo color object #bgColor - lingo color object #ink - lingo ink value #blendLevel - lingo blend value #dither - non-zero value to dither, zero to not dither #useFastQuads - non-zero value to use fast quads in quad mode #maskImage - lingo mask image object for masking #maskOffset - lingo point for mask offset.
Pointer to a MmValue that contains the original image object
and will receive the alpha channel. This image must be 32 bit.
pAlphaImageOrAlphaValue
Pointer to a MmValue that contains either a an integer or an
alpha channel image. The alpha channel image must be 8 bit.
Returns
MoaError
Description
For integer version, sets the alpha channel of an 32-bit image to a constant value.
For image object version, inserts 8-bit image into the alpha channel of a 32-bit image.
Pointer to a MmValue that contains the source image object.
This image must be 32 bit.
pResultImage
Pointer to a MmValue that will receive a new 8 bit image object.
Returns
MoaError
Description
Creates a new image 8-bit grayscale image object that is only the alpha channel plane from
the existing image object, as long as the existing image object is a 32:8 image.