TBarCode Library 11  TBarCode Library 11
ERRCODE BCSet_DotCode_SizeW ( t_BarCode pBarCode,
e_DCSizeMode  eMode,
LPCWSTR  szSize 
)

Specifies DotCode symbol size.

Specifies the size mode and value. Default size mode is eDCSm_Default.

See also:
BCGet_DotCode_SizeMode(), BCGet_DotCode_Size()
Parameters:
[in]pBarCodePointer to barcode structure.
[in]eModeDotCode size mode.
[in]szSizeThe size value. Depending on the size mode, szSize should have following values:
  • eDCSm_Default: the size value is ignored.
  • eDCSm_RatioWidthHeight: the size value contains the ratio between width and height ("w:h"). Recommended are values between 1:2 and 2:1 (in mathematical sense).
  • eDCSm_FixedWidth: the size value contains the width in number of dots (>= 5).
  • eDCSm_FixedHeight: the size value contains the height in number of dots (>= 5).
  • eDCSm_FixedWidthHeight: the size value contains the width and height in number of dots ("wxh"). If the given size is greater than needed the barcode is filled up with padding characters. If the given size is invalid or the resulting barcode is too small an error code is returned. If the width is even the height must be odd and vice versa.
Return values:
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.