home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / baswiz19.zip / BW$BAS.ZIP / G13PUT.BAS < prev    next >
BASIC Source File  |  1993-01-29  |  1KB  |  32 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        BASWIZ  Copyright (c) 1990-1993  Thomas G. Hanlin III         |
  4. '   |                                                                      |
  5. '   |                      The BASIC Wizard's Library                      |
  6. '   |                                                                      |
  7. '   +----------------------------------------------------------------------+
  8.  
  9.    DECLARE SUB G13Color (BYVAL Foreground%, BYVAL Background%)
  10.    DECLARE SUB G13GetColor (Foreground%, Background%)
  11.    DECLARE SUB G13Plot (BYVAL X%, BYVAL Y%)
  12.  
  13.    DEFINT A-Z
  14.  
  15. SUB G13Put (StartX, StartY, Image())
  16.    G13GetColor Fore, Back
  17.    L = LBOUND(Image)
  18.    DX = Image(L) \ 8
  19.    DY = Image(L + 1)
  20.    DEF SEG = VARSEG(Image(L + 2))
  21.    AOfs = VARPTR(Image(L + 2))
  22.    FOR Y = 0 TO DY - 1
  23.       FOR X = 0 TO DX - 1
  24.          G13Color PEEK(AOfs), 0
  25.          G13Plot X + StartX, Y + StartY
  26.          AOfs = AOfs + 1
  27.       NEXT
  28.    NEXT
  29.    G13Color Fore, Back
  30.    DEF SEG
  31. END SUB
  32.