Class: AxNativeScene

AxNativeScene()

new AxNativeScene()

Cretes a native scene media
Source:

Methods

Load(source) → {Boolean}

Loads a media's content, decoding it from its native format into raw data
Parameters:
Name Type Description
source AxStream A Stream holding a media's content in its native format. The stream must be positioned at the start of the content. For example, if it represents a file of the media's native type, it's position should normally be zero
Source:
Returns:
True if succeeds, false otherwise
Type
Boolean

Save(destination, format) → {Bool}

Saves the media, encoding it into the given format
Parameters:
Name Type Description
destination AxStream Stream where the encoded data will be written, starting at the stream's current position
format String The format, in which the media must be encoded into. This is useful for medas, which support multiple formats. For example, to encode an image in png format, it should be "png", or to encode a sound in wav format, it should be "wav" and so on
Source:
Returns:
True if succeeds, false otherwise
Type
Bool

Documentation generated by JSDoc 3.5.3 on Wed Jan 17 2018 17:06:57 GMT+0200 (FLE Standard Time)