* contrib/gtalleg/tests/hbmk.hbm
* contrib/hbmysql/utils/hbmk.hbm
* contrib/hbmysql/utils/dbf2mysq.prg
* contrib/hbmysql/tests/test.prg
* contrib/hbmysql/tests/hbmk.hbm
* contrib/hbct/tests/tab.prg
* contrib/hbct/tests/tokensep.prg
* contrib/hbct/tests/datetime.prg
* contrib/hbct/tests/hbmk.hbm
* contrib/hbct/tests/token2.prg
* contrib/hbct/tests/charhist.prg
* contrib/xhb/tests/hbmk.hbm
* contrib/hbodbc/tests/hbmk.hbm
* contrib/hbtpathy/tests/hbmk.hbm
* contrib/hbmzip/tests/hbmk.hbm
* contrib/hbsqlit3/tests/hbmk.hbm
* contrib/hbsqlit3/tests/authoriz.prg
* contrib/hbblat/tests/hbmk.hbm
* contrib/hbqt/tests/hbmk.hbm
* contrib/hbfbird/tests/simple.prg
* contrib/hbfbird/tests/test.prg
* contrib/hbfbird/tests/hbmk.hbm
* contrib/hbziparc/tests/hbmk.hbm
* contrib/hbxbp/tests/hbmk.hbm
* contrib/hbnf/tests/ftgete.prg
* contrib/hbnf/tests/hbmk.hbm
* contrib/hbcurl/tests/ftp_uldl.prg
* contrib/hbcurl/tests/hbmk.hbm
* contrib/hbmemio/tests/hbmk.hbm
* contrib/gtqtc/tests/demoqtc.prg
* contrib/gtqtc/tests/hbmk.hbm
* contrib/hbnetio/utils/hbmk.hbm
* contrib/hbnetio/tests/hbmk.hbm
* contrib/rddsql/tests/hbmk.hbm
* contrib/hbhpdf/tests/harupdf.prg
* contrib/hbhpdf/tests/hbmk.hbm
* contrib/rddado/tests/hbmk.hbm
* contrib/gtwvg/tests/hbmk.hbm
* contrib/hbpgsql/tests/async.prg
* contrib/hbpgsql/tests/test.prg
* contrib/hbpgsql/tests/hbmk.hbm
* contrib/hbpgsql/tests/cache.prg
* contrib/hbpgsql/tests/stress.prg
* contrib/hbpgsql/tests/dbf2pg.prg
* contrib/hbclipsm/tests/hbmk.hbm
* contrib/rddads/tests/datad.prg
* contrib/rddads/tests/hbmk.hbm
* contrib/rddads/tests/testmg.prg
* contrib/hbfimage/tests/fitest.prg
* contrib/hbfimage/tests/hbmk.hbm
* contrib/hbgd/tests/tostring.prg
* contrib/hbgd/tests/gdtestcl.prg
* contrib/hbgd/tests/gdtest.prg
* contrib/hbgd/tests/animgif.prg
* contrib/hbgd/tests/testdpi.prg
* contrib/hbgd/tests/hbmk.hbm
* contrib/hbgd/tests/counter.prg
* contrib/hbgd/tests/antialia.prg
* contrib/hbgd/tests/bartest.prg
* contrib/hbgd/tests/barms.prg
* contrib/hbgd/tests/test_out.prg
* contrib/hbmisc/tests/testhbf.prg
* contrib/hbmisc/tests/hbmk.hbm
* contrib/hbmisc/tests/twirl.prg
* contrib/hbtip/tests/dnldftp.prg
* contrib/hbtip/tests/upld_ftp.prg
* contrib/hbtip/tests/dbtohtml.prg
* contrib/hbtip/tests/hbmk.hbm
* contrib/hbwin/hbwin.h
* contrib/hbwin/hbwin.ch
* contrib/hbwin/tests/testsim.prg
* contrib/hbwin/tests/testole.prg
* contrib/hbwin/tests/testcom2.prg
* contrib/hbwin/win_com.c
* contrib/hbssl/tests/hbmk.hbm
* contrib/hbbtree/tests/hbmk.hbm
! Fixed warnings and errors in test apps.
+ Added -es2 option to test/util default options.
* Renamed few macros in hbwin / win_com implementation:
FCN* -> WIN_COM_FUN_*
WPDBG* -> WIN_COM_DBG_*
; TOFIX: Some errors are left in hbgd/test_out.prg and
gtwvg to be fixed, now the can't be built.
Please do it.
94 lines
1.8 KiB
Plaintext
94 lines
1.8 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#define IMAGES_OUT "imgs_out/"
|
|
|
|
Function Main()
|
|
|
|
local bar
|
|
|
|
// // Creating some Color (arguments are R, G, B)
|
|
local black := {0,0,0}
|
|
local white := {255,255,255}
|
|
|
|
// local blue := {0,0,255}
|
|
// local yellon := {255,255,128}
|
|
|
|
// local red := {255,0,0}
|
|
|
|
local ccode13 := "789136043666"
|
|
local ccode8 := "0421000"
|
|
// local ccode128 := "00011005100000000"
|
|
local ccode128 := "Code 128"
|
|
|
|
// local nlower := 1 , nhight := 50
|
|
|
|
/* here is the list of arguments
|
|
1- Barcode Type 13,8 and 128
|
|
*/
|
|
|
|
bar := TCode():New(13)
|
|
|
|
/* Here is the list of the arguments
|
|
1 - Thickness
|
|
2 - Color of bars
|
|
3 - Color of spaces
|
|
4 - Resolution
|
|
5 - Text Font (0-5)
|
|
*/
|
|
bar:Configure( 70 , black, white, 2, 1 )
|
|
|
|
/* Here is the list of the arguments
|
|
1 - Width
|
|
2 - Height
|
|
3 - Filename (empty : display on screen)
|
|
4 - Background color */
|
|
bar:CreateBar( 205, 105,,white)
|
|
|
|
// 1 - code bar
|
|
bar:Draw13(ccode13)
|
|
|
|
// Build image
|
|
bar:Finish(2)
|
|
|
|
// EAN8
|
|
bar:= TCode():New(8)
|
|
|
|
bar:Configure( 70 , black, white, 2 , 1 )
|
|
|
|
bar:CreateBar( 154, 100,,white)
|
|
|
|
bar:Draw8(ccode8)
|
|
|
|
bar:Finish(8)
|
|
|
|
bar:ResizeImage()
|
|
|
|
// EAN128
|
|
bar:= TCode():New(128)
|
|
|
|
bar:Configure( 50 , black, white, 2 , 1 )
|
|
|
|
bar:CreateBar( 300, 400, IMAGES_OUT + "Bar128",white)
|
|
|
|
// 1- code bar
|
|
// 2- barcode types A/B/C
|
|
// A- Alphanumeric characters uppercase
|
|
// B- Alphanumeric characters upper and lowercase
|
|
// C- Numeric pairs of integer
|
|
bar:Draw128(cCode128,"B")
|
|
|
|
bar:Finish(2)
|
|
|
|
// BRAZIL-FEBRABAN
|
|
bar:= TCode():New(25)
|
|
|
|
bar:Configure( 25 , black, white, 1 , 1, , .T. )
|
|
|
|
bar:CreateBar( 560 ,60, IMAGES_OUT + "febraban", white )
|
|
bar:DrawI25("104995628545723070285700000008218000")
|
|
bar:Finish(8)
|
|
|
|
RETURN NIL
|