home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
basic
/
baswiz18.zip
/
BW$BAS.ZIP
/
G2PUT.BAS
< prev
next >
Wrap
BASIC Source File
|
1992-08-29
|
1KB
|
32 lines
' +----------------------------------------------------------------------+
' | |
' | BASWIZ Copyright (c) 1990-1992 Thomas G. Hanlin III |
' | |
' | The BASIC Wizard's Library |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION GetBit0% (BYVAL ASeg%, BYVAL AOfs%, BitNr&)
DECLARE SUB G2Color (BYVAL Foregnd%, BYVAL Backgnd%)
DECLARE SUB G2GetColor (Foregnd%, Backgnd%)
DECLARE SUB G2Plot (BYVAL X%, BYVAL Y%)
DEFINT A-Z
SUB G2Put (StartX, StartY, Image())
G2GetColor Fore, Back
L = LBOUND(Image)
DX = Image(L)
DY = Image(L + 1)
AWide = ((DX + 7) AND &HFFF8)
ASeg = VARSEG(Image(L + 2))
AOfs = VARPTR(Image(L + 2))
FOR Y = 0 TO DY - 1
FOR X = 0 TO DX - 1
G2Color GetBit0(ASeg, AOfs, Y * AWide + (X XOR 7)), 0
G2Plot X + StartX, Y + StartY
NEXT
NEXT
G2Color Fore, Back
END SUB