Contact us

tel:15797766463

mail:business@seeshiontech.com

中文
English
中文
登录/注册

{user.username}

ID: {user.id}

<span><a href="/docs/index.html">首页</a> > <a href="/docs/en-us/editor/group_123.html">SDK</a> > <a href="/docs/en-us/editor/group_130.html">Android SDK</a> > SXEffect</span>

SXEffect

Update time : 2020-08-14 17:15:33

SXEffect is invided into transition, text animation, filter, video effects, etc., which can determined by the type attributes. Moreover it can be initialized by adding effect to tracks or main track group, created by adding methods on the track and not exist independently.

 /**
     * Set effect time follow type 
     */
    public enum SXEffectTimeFollowType {
        /**
         * Based on in point of track, the start time is relative to in point of track.
         */
        None,
        /**
         * Start time of effect can be set at the beginning of track to achieve entrance effect.
         */
        FollowStart,
        /**
         * End time of effect can be set at the end of the track to achieve exit effect.  
         */
        FollowEnd,
        /**
         * The display time of effect is the whole track duration.
         */
        FollowWholeProcess
    }

    /**
     * Set effect time follow type, SXEffectTimeFollowTypeNone by default.
     * Effect time follow type may result in changing the start time, end time and whole duration dynamically, even voiding the setting of start time or duration. 
     *
     * @param type  Effect time follow type
     */
    public void setEffectFollowType(SXEffectTimeFollowType type)

SXFilterEffect

SXAnimationEffect

SXVideoEffect

SXTextAnimationEffect

SXTrackAnimationEffect

SXColorAdjustEffect

    /**
     * Color grading options
     */
    public enum SXColorSettings {
        /**
         * Brightness
         */
        Brightness,
        /**
         * Contrast
         */
        Contrast,
        /**
         *  Saturation
         */
        Saturation,
        /**
         * Sharpen
         */
        Sharpen,
        /**
         * Highlight
         */
        Highlight,
        /**
         * Shadow
         */
        Shadow,
        /**
         * Exposure
         */
        Exposure,
        /**
         * Hue
         */
        Hue
    }

    /**
     * Get the value range of the above corresponding type color grading you set. 
     *
     * @param setting Color grading
     * @return Get value range for color grading. 
     */
    public Range getValueRangeForColorSetting(SXColorSettings setting)