Transform an image or the selected area into a pencil-sketch.

This method can be very slow for large images or for particular combination of parameters (like levelSteps and antialiasedLines).

It also requires a lot of memory and can fail processing large images.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void PencilSketch(
	bool grayScale,
	int levelSteps,
	int maxTextures,
	int edgeBlurAmount,
	double edgeAmount,
	double lineThickness,
	double darkeningFactor,
	double lineAlpha,
	double lineDensity,
	double lightness,
	bool antialiasedLines
)
Public Sub PencilSketch ( _
	grayScale As Boolean, _
	levelSteps As Integer, _
	maxTextures As Integer, _
	edgeBlurAmount As Integer, _
	edgeAmount As Double, _
	lineThickness As Double, _
	darkeningFactor As Double, _
	lineAlpha As Double, _
	lineDensity As Double, _
	lightness As Double, _
	antialiasedLines As Boolean _
)
public:
void PencilSketch(
	bool grayScale, 
	int levelSteps, 
	int maxTextures, 
	int edgeBlurAmount, 
	double edgeAmount, 
	double lineThickness, 
	double darkeningFactor, 
	double lineAlpha, 
	double lineDensity, 
	double lightness, 
	bool antialiasedLines
)

Parameters

grayScale
Boolean
If True produces gray scale drawings.
levelSteps
Int32
Determines number of colors detected from the image. Suggested range: 2 up to 6.
maxTextures
Int32
Overcome LevelSteps parameter, specifing maximum number of textures (colors) to generate.
edgeBlurAmount
Int32
Specifies the edge thickness. Suggested range: 2 up to 10.
edgeAmount
Double
Specifies the edge amount. Suggested range: 0 up to 2.
lineThickness
Double
Specifies drawn lines thickness. Suggested range: 0.5 up to 10.
darkeningFactor
Double
lineAlpha
Double
Specifies drawn lines transparency (alpha). Suggested range: 0.05 up to 0.5.
lineDensity
Double
Specifies drawn lines density (how much lines are drawn in the textures). Suggested range: 0.25 up to 1.
lightness
Double
Specifies the overall lightness of the resulting image. Suggested range: 1 up to 8.
antialiasedLines
Boolean
If True texture lines are drawn with antialiasing routine.

See Also