Call _setvideomode Before Calling _imagesize

ID: Q40351

6.00 6.00a 6.00ax 7.00 | 1.00

MS-DOS                 | WINDOWS
kbprg

The information in this article applies to:

The _imagesize() function calls _getvideoconfig() to determine the number of bits required to store a pixel given the CURRENT video mode. If you are calling _imagesize() prior to calling _setvideomode(), an unexpected result is returned by _imagesize().

In summary, do the following in order:

1. _setvideomode()

2. _imagesize()

3. _getimage() and putimage()

Additional reference words: kbinf 6.00 6.00a 6.00ax 7.00 1.00 KBCategory: kbprg KBSubcategory: CRTIss Keywords : kb16bitonly

Last Reviewed: July 18, 1997