Hello smoothy,
The answer on "Is this the correct approach" depends on what you are going to do.
But if you just want to load a picture you 've just draw (in Paint or something else), you have 2 choises (I think).
1. Hard way.
Get a description of a BMP file format (from Internet or some book), understand it and write a sub that will read BMP file in BINARY mode and put pixels in right places, so to speak.
2. Easy way.
Search for "Bitmap loader" or similar (GIF loader)
- you'll sure find ready-to use sub.
Thanks for the reply tsh73. I think I'll look for the format. I tried to borrow a pre-written subroutine that failed to work, and left me guessing on the format, although the code seemed solid.
As for my approach - I am trying to write children's learning games, so I want to be able to make a lot of pretty pictures and tweak them a little.
Thank you to tsh73 and codepost - I haven't went anywhere yet, but thanks for your guidance. And I did not know about the qbasic pixel limitation. I was going to use screen 9 (640 x 350).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.