-
Notifications
You must be signed in to change notification settings - Fork 7
Adding Images from Raster Master to QuickBasic & QB64
Draw your Image. I have made a little man green arms.
Click on the select tool and mark the area you want to include in your program.
From the File menu select Export->QuickBasic\QB64 DATA
Save the file where your program is going to be located - it will have a *.dat extension.
I will call mine man16.dat In your QuickBasic\QB64 program include the man16.dat
You can do a File->Merge from the QuickBasic editor to insert the code fragment to your program.
Here is a complete listing of the program including the man16.dat that was generated by Raster Master
SCREEN 7 DEFINT A-Z OPTION BASE 1 DIM man(140)
FOR i = 1 TO 140 READ man(i) NEXT
PUT (10, 10), man
' QuickBASIC\QB64, Array Size= 140 Width= 21 Height= 23 Colors= 16 ' man16
DATA &H0015,&H0017,&H0000,&H0000,&H0000,&H0000,&H0000,&H0000 DATA &H7000,&H0000,&H0070,&H7000,&H0000,&H0070,&HF800,&H0000 DATA &H00A8,&HA800,&H0000,&H00A8,&HF800,&H0000,&H00F8,&HF800 DATA &H0000,&H00F8,&HA800,&H0000,&H00F8,&HF800,&H0000,&H00F8 DATA &H5000,&H0000,&H0070,&H7000,&H0000,&H0070,&H0000,&H0000 DATA &H2020,&H0000,&H0000,&H0020,&H0000,&H0000,&H2020,&H0000 DATA &H0000,&H0020,&H0000,&H0000,&H2020,&H0000,&H0000,&H0020 DATA &H0000,&H0000,&H2000,&HF800,&H0000,&H00F8,&H0000,&H1F00 DATA &HE007,&HF800,&H0000,&H00F8,&H0000,&H1000,&H0000,&HF800 DATA &H0000,&H00F8,&H0000,&H1000,&H0000,&HF800,&H0000,&H00F8 DATA &H0000,&H1000,&H0000,&HF800,&H0000,&H00F8,&H0000,&H0000 DATA &H0000,&HF800,&H0000,&H00F8,&H0000,&H0000,&H0000,&HF800 DATA &H0000,&H00F8,&H0000,&H0000,&H0050,&H0000,&H0000,&H0000 DATA &H0000,&H0000,&H0050,&H0000,&H0000,&H0000,&H0000,&H0000 DATA &H0050,&H0000,&H0000,&H0000,&H0000,&H0000,&H0050,&H0000 DATA &H0000,&H0000,&H0000,&H0000,&H00D8,&H0000,&H0000,&H0000 DATA &H0000,&H0000,&H0000,&H0000,&H0000,&H0000,&H0000,&H0000 DATA &H0000,&H0000,&H0000,&H0000