Skip to main content

ImageEffects

ClassDataClassSource

ImageEffects(
alpha: int = 100,
alpha_content: int = 100,
blend: Literal["default", "add", "add_modulo", "screen", "lighter", "subtract", "subtract_modulo", "multiply", "darker", "difference", "soft_light", "hard_light"] = "default",
stroke: ImageEffectStroke | None = None,
glow: ImageEffectGlow | None = None,
shadow: ImageEffectShadow | None = None,
bevel: ImageEffectBevel | None = None,
overlays: list[ImageOverlayAbstract] = []
)

The image effects of a layer.

The stack of the effects are ordered as:

(bottom) -> (top)
shadow -> glow -> stroke -> (bg replica) -> self -> overlays -> bevel

Fields​

NameTypeRequired
Description
alphaintThe alpha value of the whole layer. This value will take effect for all applied effects.
alpha_contentintThe alpha value of the image. This value will only take effects on the image but will not take effects on the applied effects.
blendLiteral["default", "add", "add_modulo", "screen", "lighter", "subtract", "subtract_modulo", "multiply", "darker", "difference", "soft_light", "hard_light"]The mode used for blending this image into the canvas.
strokeImageEffectStroke | NoneThe "stroke" effect of the layer. It works only when the image is RGBA.
glowImageEffectGlow | NoneThe "glowing" effect of the layer. It works only when the image is RGBA.
shadowImageEffectShadow | NoneThe "shadow/shade" effect of the layer. It works only when the image is RGBA.
bevelImageEffectBevel | NoneThe "bevel" effect of the layer. It works only when the image is RGBA.
overlayslist[ImageOverlayAbstract]The "overlaying" effect of the layer. It contains a series of overlaying operations. The top layers will be ordered later in this list.