Custom PUT routine to screen 12

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
JaniH
Newbie
Posts: 4
Joined: Mon Apr 24, 2006 2:33 pm
Location: Finland

Custom PUT routine to screen 12

Post by JaniH »

Hi! I have created a 18*18 pixels image and saved it with bsave in screen 12. Is there way to draw that picture pixel by pixel from memory after bloading it? For example drawing only 10*10 pixels instead 18*18 pixels. Anyway, I know how to do that in screen 13, but I don't know how to get it work in screen 12. Can anyone help me?
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Sure

Post by burger2227 »

I gather you are using a BLOAD array. PUT the image on the screen and then just GET what you need and erase the original picture. This should hardly take much time. Just erase it with a black full box. CLS is too slow and can cause screen flicker.

If you use two Arrays or index one array, then you can have either one shown later using PUT.

Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
Post Reply