Page 1 of 1

New comer says hi and starts asking =D

Posted: Mon Nov 01, 2004 10:52 am
by lurah-
After some years with out qb i got my interest back.

I know how to load bmp picture on screen (320*200, 256 colors).
But how i can load an 100*100 area from 640*400 bmp picture?

I could first load whole picture and then read wanted area from it, bsave it and so on but is there any stright way to load only that area i want from that picture?

Posted: Mon Nov 01, 2004 1:57 pm
by Nodtveidt
The best way to go about that would be the "hard" way, which would be to read the data inside the BMP file itself and only displaying the pixels in the range you want. Say like...you could loop through the image data and only draw the pixels which fell into a certain range of X/Y coordinates. It's sorta hard for me to explain such things but...do you get the idea at least? :D

Posted: Tue Nov 02, 2004 12:16 am
by lurah-
Yah, i see your point and i freid that it?s the only way.
Sounds darn "hard" and slow. I tested to do that kind of thing but couldnt get it work anyway :lol: