ImageEn, unit iexUserInteractions

TIERetouchToolInteraction.PencilSketchLevels

TIERetouchToolInteraction.PencilSketchLevels


Declaration

var PencilSketchLevels: Integer;


Description

Specify the number of colors to detect in the image. Suggested range: 2 to 6 (higher values slow processing).

For more information: PencilSketch

Note: iermPencilSketch can be very slow and requires a lot of memory

Default: 2


Example

// Apply a gray-scale pencil sketch effect to brushed areas
ImageEnView1.RetouchTool.RetouchMode         := iermPencilSketch;
ImageEnView1.RetouchTool.PencilSketchGray    := True;
ImageEnView1.RetouchTool.PencilSketchLevels  := 3;
ImageEnView1.RetouchTool.PencilSketchThickness := 1.4;
ImageEnView1.RetouchTool.PencilSketchAlpha   := 0.2;
ImageEnView1.RetouchTool.PencilSketchDensity := 0.8;
ImageEnView1.MouseInteractGeneral            := [ miRetouchTool ];


See Also

PencilSketchAlpha
PencilSketchDensity
PencilSketchGray
PencilSketchThickness