home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
basic
/
library
/
qb_pds
/
baswiz
/
bw_bas
/
gn1banne.bas
< prev
next >
Wrap
BASIC Source File
|
1992-08-29
|
2KB
|
48 lines
' +----------------------------------------------------------------------+
' | |
' | BASWIZ Copyright (c) 1990-1992 Thomas G. Hanlin III |
' | |
' | The BASIC Wizard's Library |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION Power2I% (BYVAL PowerOf2 AS INTEGER)
DECLARE SUB GN1Box (BYVAL X1%, BYVAL Y1%, BYVAL X2%, BYVAL Y2%, BYVAL Fill%)
DECLARE SUB GN1Plot (BYVAL X%, BYVAL Y%)
DECLARE FUNCTION BFontRow0% (BYVAL ch%, BYVAL Row%)
DECLARE FUNCTION BFontRows0% ()
DEFINT A-Z
SUB GN1Banner (St$, X, Y, Xmul, Ymul)
MaxRow = BFontRows0 - 1
IF Xmul <= 1 AND Ymul <= 1 THEN
FOR tmp = 1 TO LEN(St$)
cha = ASC(MID$(St$, tmp, 1))
FOR Row = 0 TO MaxRow
ch = BFontRow0(cha, Row)
FOR Col = 0 TO 7
IF ch AND Power2I%(7 - Col) THEN
GN1Plot (tmp - 1) * 8 + Col + X, Row + Y
END IF
NEXT
NEXT
NEXT
ELSE
FOR tmp = 1 TO LEN(St$)
cha = ASC(MID$(St$, tmp, 1))
FOR Row = 0 TO MaxRow
vy = Row * Ymul + Y
ch = BFontRow0(cha, Row)
FOR Col = 0 TO 7
IF ch AND Power2I%(7 - Col) THEN
vx = ((tmp - 1) * 8 + Col) * Xmul + X
GN1Box vx, vy, vx + Xmul - 1, vy + Ymul - 1, 1
END IF
NEXT
NEXT
NEXT
END IF
END SUB