CalibrationPatternCreate Method (CalibrationPatternStyle, CalibrationPatternContrast, CalibrationPatternFormat, CalibrationPatternOrientation, Int32, Int32, Double, Double, Int32)

CVB.Net Documentation
Create a user-definable calibration pattern suitable for printing on a sheet of paper. The calibration pattern will consist of a regularly spaced matrix of dots, the size of which will be determined by the input parameters. The size of the pattern image will be suitable for printing it on an piece of paper defined by the paperSize parameter. The calibration pattern will consist of a regular rectangular grid of dots. The distance between the dots in x- and y-direction will be 2.5 times the diameter of the dots. If an asymmetric pattern was selected, the bigger dots will have 2.5 times the area of the smaller dots (meaning that their radius is sqrt(2.5) times the radius of the small dots).

Namespace:  Stemmer.Cvb.Foundation
Assembly:  Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax

public static Image Create(
	CalibrationPatternStyle style,
	CalibrationPatternContrast contrast,
	CalibrationPatternFormat paperSize,
	CalibrationPatternOrientation orientation,
	int numColumns,
	int numRows,
	double horizontalBorder,
	double verticalBorder,
	int dpi
)

Parameters

style
Type: Stemmer.Cvb.FoundationCalibrationPatternStyle
Dot style to use (see CalibrationPatternStyle).
contrast
Type: Stemmer.Cvb.FoundationCalibrationPatternContrast
Selects whether to use white on black or black on white dots (see CalibrationPatternContrast).
paperSize
Type: Stemmer.Cvb.FoundationCalibrationPatternFormat
size of the paper on which to print the calibration pattern later on (see CalibrationPatternFormat).
orientation
Type: Stemmer.Cvb.FoundationCalibrationPatternOrientation
Choose orientation; only relevant for AsymmetricDots.
numColumns
Type: SystemInt32
Number of dot columns in the image.
numRows
Type: SystemInt32
Number of dot rows in the image.
horizontalBorder
Type: SystemDouble

Horizontal borders to be applied (in inches).

This value should match the setting that is going to be used for printing the resulting image. Must not be negative. The meaning of horizontal refers to the paper size definition and is independent of the orientation setting.

verticalBorder
Type: SystemDouble

Vertical borders to be applied (in inches).

This value should match the setting that is going to be used for printing the resulting image. Must not be negative. The meaning of vertical refers to the paper size definition and is independent of the orientation setting.

dpi
Type: SystemInt32

Dot density to be used (in dots per inch).

It usually makes sense to set this parameter to the printer's physical dot density or half or quarter of that. Minimum value is 150.

Return Value

Type: Image
Calibration pattern image.
See Also

Reference