ILayerEffect
public interface ILayerEffect
Interface for Layer Effects
Methods
| Method | Description |
|---|---|
| getBlendMode() | Gets or sets the blend mode. |
| getEffectBounds(Rectangle layerBounds, int globalAngle) | Calculate and gets the bounds of effect pixels based on input layer pixels bounds. |
| getEffectType() | Gets a type of effect |
| getOpacity() | Gets or sets the opacity where 255 = 100% |
| isVisible() | Gets or sets a value indicating whether this instance is visible. |
| setBlendMode(long value) | Gets or sets the blend mode. |
| setOpacity(byte value) | Gets or sets the opacity where 255 = 100% |
| setVisible(boolean value) | Gets or sets a value indicating whether this instance is visible. |
getBlendMode()
public abstract long getBlendMode()
Gets or sets the blend mode.
Value: The blend mode.
Returns: long
getEffectBounds(Rectangle layerBounds, int globalAngle)
public abstract Rectangle getEffectBounds(Rectangle layerBounds, int globalAngle)
Calculate and gets the bounds of effect pixels based on input layer pixels bounds.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| layerBounds | Rectangle | The layer pixels bounds. |
| globalAngle | int | The global angle to calculate global light angle. |
Returns: Rectangle - The bounds of effect pixels based on input layer pixels bounds.
getEffectType()
public abstract int getEffectType()
Gets a type of effect
Returns: int
getOpacity()
public abstract byte getOpacity()
Gets or sets the opacity where 255 = 100%
Value: The opacity.
Returns: byte
isVisible()
public abstract boolean isVisible()
Gets or sets a value indicating whether this instance is visible.
Value: true if this instance is visible; otherwise, false .
Returns: boolean
setBlendMode(long value)
public abstract void setBlendMode(long value)
Gets or sets the blend mode.
Value: The blend mode.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | long |
setOpacity(byte value)
public abstract void setOpacity(byte value)
Gets or sets the opacity where 255 = 100%
Value: The opacity.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | byte |
setVisible(boolean value)
public abstract void setVisible(boolean value)
Gets or sets a value indicating whether this instance is visible.
Value: true if this instance is visible; otherwise, false .
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |