跳转到内容

BlendMode ​

Blend modes defines how the colors should be mixed when two images overlaps. Used in Image:drawImage() as input argument.

Background sample // sample with blending applied

backgroundduck

BlendMode.NORMAL ​

Mix the background colors with the blending image proportionally to its alpha values. Full transparent pixels will show the background.

normal_blend

BlendMode.SRC ​

A simple copy/paste of the blending image to the background.

normal_blend

BlendMode.MULTIPLY ​

multiply_blend

BlendMode.SCREEN ​

screen_blend

BlendMode.OVERLAY ​

overlay_blend

BlendMode.DARKEN ​

darken_blend

BlendMode.LIGHTEN ​

lighten_blend

BlendMode.COLOR_DODGE ​

color_dodge_blend

BlendMode.COLOR_BURN ​

color_burn_blend

BlendMode.HARD_LIGHT ​

hard_light_blend

BlendMode.SOFT_LIGHT ​

soft_light_blend

BlendMode.DIFFERENCE ​

difference_blend

BlendMode.EXCLUSION ​

exclusion_blend

BlendMode.HSL_HUE ​

hue_blend

BlendMode.HSL_SATURATION ​

saturation_blend

BlendMode.HSL_COLOR ​

color_blend

BlendMode.HSL_LUMINOSITY ​

luminosity_blend

BlendMode.ADDITION ​

addition_blend

BlendMode.SUBTRACT ​

subtract_blend

BlendMode.DIVIDE ​

divide_blend