ITBarCode.QualityHdc2

ITBarCode

Long QualityHdc2(VARIANT hDC, Long nWidth, Long nHeight)

Gets the estimated quality of the barcode in percent for a given device context.

Read-Only. TBarCode estimates the printing tolerance of the barcode based on the current data to be encoded, the resulting module width and raster errors to be expected for the current output device context.

Parameters

Parameter / typeDescription
[in] hDC VARIANT

Handle of the device context.

[in] nWidth Long

Width of the barcode in device context units.

[in] nHeight Long

Height of the barcode in device context units.

Returns

Expected barcode quality (0..unreadable, 100..perfect quality)

Exception:

On error an exception is thrown

Visual Basic Syntax:

QualityHdc2
(
  hDC As Variant,       /* handle of the device context */
  nWidth As Long,   /* width of the barcode in the DC-units */
  nHeight   As Long   /* height of the barcode in the DC-units */
) As Double

Search documentation

Search in
More scopes
Additional scopes

All contents