Source: Media/Image/Native/AxNativeImageDispatcher.js

/**
 * Creates a new dispatcher for AxNativeImage
 * @constructor
 */
function AxNativeImageDispatcher()
{
    AxModuleDispatcher.call(this);
}

AxNativeImageDispatcher.prototype = Object.create(AxModuleDispatcher.prototype);



/**
 * Requests information about the dispatched object. The requested is specified by the infoId parameter, and depending on it, the infoTag parameter may have to be used. If the requested information is availabe, it is filled in the info parameter and the method returns true, otherwise returns false.
 * @param {Integer} infoId Specifies what information is requested
 * @param {Integer} infoTag An additional parameter, used for some infoIds. Depending on which infoId is used, the infoTag may or may not have a specific meaning.
 * @param {AxString} info A string in which the requested information will be returned
 * @return {Boolean} True if the requested information is available and returned in the info parameter, false otherwise
 */
AxNativeImageDispatcher.prototype.GetInfo = function(infoId, infoTag, info)
{
    switch (infoId)
    {
        case AxModuleDispatcher.infoId_TypeId:
            info = AxString(AxModuleDispatcher.typeId_Image);
            return true;

        case AxModuleDispatcher.infoId_Name:
            info = 'Axis image';
            return true;

        case AxModuleDispatcher.infoId_Description:
            info = 'Axis native image format. Serializes and deserializes images in axis\'s native format';
            return true;

        case AxModuleDispatcher.infoId_MediaSerializationFormatExtension:
            if (infoTag === 0)
            {
                info = AxNativeImage.formatName;
                return true;
            }
            break;

        case AxModuleDispatcher.infoId_MediaSerializationFormatDescription:
            if (infoTag === 0)
            {
                info = 'Axis image';
                return true;
            }
            break;

        case AxModuleDispatcher.infoId_MediaDeserializationFormatExtension:
            if (infoTag === 0)
            {
                info = AxNativeImage.formatName;
                return true;
            }
            break;

        case AxModuleDispatcher.infoId_MediaDeserializationFormatDescription:
            if (infoTag === 0)
            {
                info = 'Axis image';
                return true;
            }
            break;
}

    return false;
};

/**
 * Creates an instance of the dispatched object.
 * @return {AxWebImage}
 */
AxNativeImageDispatcher.prototype.CreateObject = function()
{
    return new AxNativeImage();
};

Documentation generated by JSDoc 3.5.3 on Wed Jul 26 2017 18:59:51 GMT+0300 (FLE Daylight Time)