ImageEn, unit iexUserInteractions |
|
TIEPenOptions.OpacityEnabled
Declaration
property OpacityEnabled: TIEEnabled;
Description
When enabled, pen pressure will affect the opacity, i.e. minimal pressure draws with maximum transparency, whereas more pressure draws with minimum transparency.
If
OpacityEnabled is enAuto, then holding down the Ctrl key will enable it.
Note:
◼OpacityEnabled works in tandem with
Transparency, e.g. if
Transparency is 128 (50% opacity) then with full pen pressure, painting will never exceed 50% opacity.
◼The strength of pressure on transparency is controlled by
OpacityStrength
◼When using a
Retouch Tool, this option only has effect when using iermSmudge. It controls the
strength of the effect
Value | Description |
enFalse | Pen pressure has no effect on brush opacity |
enTrue | Pen pressure affects brush opacity |
enAuto | Pen pressure affects brush opacity when the Ctrl key is pressed |
Default: enTrue
// Brush opacity is affected by pressure of pen
ImageEnView1.BrushTool.PenEffects.OpacityEnabled := enTrue;
// Brush opacity is affected by pressure of pen only when Ctrl key is pressed
ImageEnView1.BrushTool.PenEffects.OpacityEnabled := enAuto;
// Pressure of pen has no effect on brush opacity
ImageEnView1.BrushTool.PenEffects.OpacityEnabled := enFalse;