Search found 4 matches

by shlafferty
Fri Aug 31, 2012 7:35 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: What is the format of GET graphics data?
Replies: 7
Views: 13817

I have done some experiments and solved the GET graphics format for SCREEN 11, so I am presenting the findings for anyone else who needs the information: - SCREEN 11 is a 640 x480 1-bit/pixel mode with only one plane. - "GET (0,0) - (639,479) array%" puts the screen data in array%. - The f...
by shlafferty
Thu Aug 30, 2012 1:46 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: What is the format of GET graphics data?
Replies: 7
Views: 13817

Right; I'm familiar with the PBM format. The questions are about the format of QB's GET graphics data in the integer array. It sounds like you are implying that the QB data is read from bottom to top. Is that right?

Thanks,

Steve
by shlafferty
Thu Aug 30, 2012 10:32 am
Forum: QBASIC and QB64 Questions & Answers
Topic: What is the format of GET graphics data?
Replies: 7
Views: 13817

Thanks, Burger. That only leaves the question of whether the pixels are packed into the MSB first, or not, in the integers. I'm going to assume so and try it. Will also assume that the raster data is read L->R, then T->B. It finally dawned on me that adding 7 inside the INT just counts an extra byte...
by shlafferty
Thu Aug 30, 2012 6:12 am
Forum: QBASIC and QB64 Questions & Answers
Topic: What is the format of GET graphics data?
Replies: 7
Views: 13817

What is the format of GET graphics data?

Hi, I need to convert data from the graphics screen into the PBM file format for external use. However, I haven't been able to find out exactly the format which the GET command uses when storing graphics data in an array, despite consulting books and the Web. The screen mode is 11, for max resolutio...