This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
finding_image_file_dimensions [2018/10/17 13:14] richardrussell created |
finding_image_file_dimensions [2018/10/17 13:35] richardrussell Corrected JPG dimensions |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====Finding image file dimensions===== | ||
+ | |||
//by Richard Russell, October 2018// | //by Richard Russell, October 2018// | ||
Line 19: | Line 21: | ||
UNTIL BGET#F% = &FF AND BGET#F% = &C0 OR EOF#F% | UNTIL BGET#F% = &FF AND BGET#F% = &C0 OR EOF#F% | ||
PTR#F% = PTR#F% + 3 | PTR#F% = PTR#F% + 3 | ||
- | W% = 256 * BGET#F% + BGET#F% | ||
H% = 256 * BGET#F% + BGET#F% | H% = 256 * BGET#F% + BGET#F% | ||
+ | W% = 256 * BGET#F% + BGET#F% | ||
CLOSE #F% | CLOSE #F% | ||
ENDPROC | ENDPROC |