ITBarCode.QualityHdc
Long QualityHdc(Long hDC, Long nWidth, Long nHeight)Deprecated
use function QualityHdc2() instead.
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 / type | Description |
|---|---|
[in] hDC Long |
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:
QualityHdc
(
hDC As Long, /* 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
See also
BarWidthReduction, CountModules, ModuleWidth, MustFit, OptResolution, Quality