DR Developer's Guide
DR Interfaces | DR Methods | DR Types and Misc API

IMoaDrMediaValue



Interface ID: IID_IMoaDrMediaValue
Pointer type: PPIMoaDrMediaValue
Inheritance: IMoaUnknown
Header file: drivalue.h

Description

The IMoaDrMediaValue interface provides Director-specific value types for media. It complements the features of IMoaDrValue, providing application-specific services to Xtras.

Methods

ValueToMedia()
MediaToValue()
ValueToPicture()
PictureToValue()

MediaToValue()

Syntax

MediaToValue(PPIMoaDrMediaValue This,
const MoaHandle hMediaData,
PMoaMmValue pValue)

Parameters

This
Pointer to the PIMoaDrMediaValue interface

hMediaData
const MoaHandle  Pointer to a handle that has the media data

pValue
PMoaMmValue  Pointer to a MoaMmValue to receive the result

Returns

MoaError

Description

This method creates a Lingo value from a binary handle that was acquired by calling ValueToMedia(). This Lingo value can be passed as a parameter to a Lingo handler.


PictureToValue()

Syntax

PictureToValue(PPIMoaDrMediaValue This,
const MoaHandle hPictureData,
PMoaMmValue pValue)

Parameters

This
Pointer to the PIMoaDrMediaValue interface

hPictureData
const MoaHandle  Pointer to a handle that has the picture data

pValue
PMoaMmValue  Pointer to a MoaMmValue to receive the result

Returns

MoaError

Description

This method creates a Lingo value from a binary handle that was acquired by calling ValueToPicture(). This Lingo value can be passed as a parameter to a Lingo handler.


ValueToMedia()

Syntax

ValueToMedia(PPIMoaDrMediaValue This,
ConstPMoaMmValue pValue,
MoaHandle *phMediaData)

Parameters

This
Pointer to the PIMoaDrMediaValue interface

pValue
ConstPMoaMmValue  Pointer to a value

*phMediaData
MoaHandle  Pointer to a handle to receive the media data

Returns

MoaError

Description

This method converts a media Lingo value to a binary handle for saving to a file or network streaming. The binary value can be moved to a different platform and passed back to Director or Shockwave.


ValueToPicture()

Syntax

ValueToPicture(PPIMoaDrMediaValue This,
ConstPMoaMmValue pValue,
MoaHandle *phPictureData)

Parameters

This
Pointer to the PIMoaDrMediaValue interface

pValue
ConstPMoaMmValue  Pointer to a value

*phPictureData
MoaHandle  Pointer to a handle to receive the picture data

Returns

MoaError

Description

This method converts a picture Lingo value to a binary handle for saving to a file or network streaming. The binary value can be moved to a different platform and passed back to Director or Shockwave.

Copyright © 1995-2007 Adobe Macromedia Software LLC, Inc.