IID_IMoaMmImage
Pointer type:IMoaMmImage
Inheritance: IMoaUnknown
Header file: mmiimage.hNote: syntax provided in C++ format.
typedef struct MoaMmImageInfo
{
MoaLong iWidth;
MoaLong iHeight;
MoaLong iRowBytes;
MoaLong iTotalDepth;
MoaLong iAlphaDepth;
MoaBool bCartesian;
} MoaMmImageInfo, *PMoaMmImageInfo;
NewImage(MoaLong iWidth, MoaLong iHeight, MoaLong iBitDepth,
MoaLong iAlphaDepth,
- PMoaMmValue pPaletteRef, PMoaMmValue pResultImage)
iWidth
iHeight
iBitDepth
iAlphaDepth
pPaletteRef
MmValue
that contains a member reference for a palette member. Use
NULL for a missing palette reference. The movie default palette is used.pResultImage
MmValue
that will receive the new image object.MoaError
Duplicate(ConstPMoaMmValue pSourceImage, PMoaMmValue pResultImage)
pSourceImage
MmValue
that contains the source image objectpResultImage
MmValue
that will receive the destination image
objectMoaError
NewImageFromStream(PIMoaStream pStream, PPMoaVoid pProgressCookie,
PMoaMmValue pResultImage)
pStream
pProgressCookie
pResultImage
MmValue
that will receive the destination image
objectMoaError
UpdateImageFromStream
. In this case ReleaseProgressCookie
must be called to deallocate the cookie.UpdateImageFromStream(PIMoaStream pStream,
PMoaVoid pProgressCookie,
PMoaMmValue pUpdateImage)
pStream
pProgressCookie
pUpdateImage
MmValue
that is in the process of receiving the
image objectMoaError
ReleaseProgressCookie(PPMoaVoid pProgressCookie)
pProgressCookie
MoaError
NewImageFromStream
.NewImageFromPath(PIMoaPathName pMoaPath,
PMoaMmValue pResultImage)
pMoaPath
pResultImage
MmValue
that will receive the image objectMoaError
GetImageInfo(ConstPMoaMmValue pImage,
PMoaMmImageInfo pImageInfo)
pImage
MmValue
that contains an image object.pImageInfo
MoaMmImageInfo
structure that will be filled with
the information about the passed in image.kMoaDrErr_ImageExpected
is returned if pImage
does not reference an image object
MoaMmImageInfo
structure.CopyPixels(ConstPMoaMmValue pImage, ConstPMoaMmValue pSourceImage,
ConstPMoaMmValue pDestRectOrQuad,
- ConstPMoaMmValue pSourceRect,
ConstPMoaMmValue pPropList)
pImage
MmValue
that contains the destination image objectpSourceImage
MmValue
that contains the source image objectpDestRectOrQuad
MmValue
that contains the destination rectangle or quad for the copypSourceRect
MmValue
that contains the source rectanglepPropList
MmValue
that contains a property list with various
parameters used for modifiying the copy. Use NULL for a missing property listMoaError
#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.Crop(ConstPMoaMmValue pSourceImage, ConstPMoaMmValue pRect, PMoaMmValue pResultImage)
pSourceImage
MmValue
that contains the source image objectpRect
MmValue
that contains the rectangle to use for cropping.pResultImage
MmValue
that will receive the new cropped image
objectMoaError
Draw(ConstPMoaMmValue pImage, ConstPMoaMmValue pRect, ConstPMoaMmValue pPropList)
pImage
MmValue
that contains the image objectpRect
MmValue
that contains the rectangle to use for
drawing.pPropList
MmValue
that contains a property list with various
parameters used for modifiying the drawing. Use NULL for a missing property
listMoaError
#color
- lingo color object#lineSize
- line width#shapeType
- #rect, #roundRect, #oval, #lineFill(ConstPMoaMmValue pImage, ConstPMoaMmValue pRect, ConstPMoaMmValue pPropList)
pImage
MmValue
that contains the image objectpRect
MmValue
that contains the rectangle to use for
drawing.pPropList
MmValue
that contains a property list with various
parameters used for modifiying the drawing. Use NULL for a missing property
listMoaError
#color
- lingo color object#bgColor
- lingo color object#lineSize
- line width#shapeType
- #rect, #roundRect, #oval, #lineCreateMatte(ConstPMoaMmValue pSourceImage, PMoaMmValue pResultImage)
pSourceImage
MmValue
that contains the source image objectpResultImage
MmValue
that will receive the new destination
image object with the matteMoaError
CreateMask(ConstPMoaMmValue pSourceImage, PMoaMmValue pResultImage)
pSourceImage
MmValue
that contains the source image objectpResultImage
MmValue
that will receive the new destination
image object with the maskMoaError
TrimWhiteSpace(ConstPMoaMmValue pSourceImage, PMoaMmValue pResultImage)
pSourceImage
MmValue
that contains the source image objectpResultImage
MmValue
that will receive the new trimmed image objectMoaError
SetAlpha(ConstPMoaMmValue pImage, ConstPMoaMmValue pAlphaImageOrAlphaValue)
pImage
MmValue
that contains the original image object
and will receive the alpha channel. This image must be 32 bit.pAlphaImageOrAlphaValue
MmValue
that contains either a an integer or an
alpha channel image. The alpha channel image must be 8 bit.MoaError
ExtractAlpha(ConstPMoaMmValue pSourceImage, ConstPMoaMmValue pResultImage)
pSourceImage
MmValue
that contains the source image object.
This image must be 32 bit.pResultImage
MmValue
that will receive a new 8 bit image object.MoaError
GetPixel(ConstPMoaMmValue pImage, MoaLong iXCoordinate, MoaLong iYCoordinate,
- PMoaMmValue pResultPixelValue)
pImage
MmValue
that contains the image objectiXCoordinate
iYCoordinate
pResultPixelValue
MmValue
that will receive a color object value
for the pixel.MoaError
SetPixel(ConstPMoaMmValue pImage, MoaLong iXCoordinate, MoaLong iYCoordinate,
- ConstPMoaMmValue pPixelValue)
pImage
MmValue
that contains the image objectiXCoordinate
iYCoordinate
pPixelValue
MmValue
that contains the new color object value to be used for the pixel. MoaError
GetPixellnteger(ConstPMoaMmValue pImage, MoaLong iXCoordinate, MoaLong iYCoordinate,
- PMoaLong pResultPixelValue)
pImage
MmValue
that contains the image objectiXCoordinate
iYCoordinate
pResultPixelValue
MoaLong
that will receive an integer value
for the pixel.MoaError
SetPixelInteger(ConstPMoaMmValue pImage,
MoaLong iXCoordinate,
MoaLong iYCoordinate,
- MoaLong iPixelValue)
pImage
MmValue
that contains the image objectiXCoordinate
iYCoordinate
iPixelValue
MoaError
LockPixels(ConstPMoaMmValue pImage, PMoaVoid * ppPixels)
pSourceImage
MmValue
that contains the image objectppPixels
MoaError
UnlockPixels
UnlockPixels(ConstPMoaMmValue pImage)
pSourceImage
MmValue
that contains the image object which had a previous call to
LockPixels
.MoaError
LockPixels