Click or drag to resize

BaseImageProcessingSearcherElementCalcOptimizedLineThickness Method

The result images are scaled down to fit into the dialogs. Various lines should appear in the downscaled images with a thickness of 1. The downscaled images have a size of 318 x 240 pixels. To show lines there in an adequate thickness they have to be drawn with bigger thickness in the source image. A factor is calculated here to achieve this. The same factor can be used to determine an optimized radius for our marking circles.

Namespace: RAYLASE.Marker.JobElement.ImageProcessing
Assembly: RAYLASE.Marker.JobElement (in RAYLASE.Marker.JobElement.dll) Version: 2.20.0
Syntax
C#
protected int CalcOptimizedLineThickness(
	int imageWidth,
	int imageHeight,
	int lineThickness
)

Parameters

imageWidth  Int32
The source image's width.
imageHeight  Int32
The source image's height.
lineThickness  Int32
The line thickness as it should appear in the downscaled result images shown to the user.

Return Value

Int32
The line thickness as must be used in the source image.
See Also