home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff239.lzh
/
JGoodies
/
Mandelbrot
/
bitmap_support
< prev
next >
Wrap
Text File
|
1989-08-21
|
1KB
|
44 lines
\ Copyright 1989 NerveWare
\ No portion of this code may used for commercial purposes,
\ nor may any executable version of this code be disributed for
\ commercial purposes without the author's express written permission.
\ This code is shareware, all rights reserved.
\ Nick Didkovsky
\ MOD: $iff>bitmap needed a NOT in it. see below. ND 2/3/89
getmodule includes
include? $ilbm.parse.file jiff:ilbm_parser
anew task-Test_bitmap
\ **************************** BITMAP STUFF ******************************
\ borrowed from Phil Burk's beta IFF stuff. Display a bitmap at x,y
variable cur-minterm
$ 0C0 cur-minterm !
: XYBITMAP { xd yd bmap -- , draw bitmap to rastport}
bmap 0 0 ( absbitmap x y )
gr-currport @ >rel xd yd ( absrastport x y )
bmap bitmap>wh
cur-minterm @
BltBitMapRastPort()
;
\ MOD: NOT was missing below. Always returned 0 instead of bitmap address.
: $IFF>BITMAP.ND ( $filename -- bitmap | NULL , read )
gr.init
\ Read graphics from file.
$ilbm.parse.file
ilbm.alloc.bitmap dup
IF dup ilbm.fill.bitmap
NOT IF free.bitmap 0
THEN
THEN
ilbm.cleanup
;