[comp.sys.ibm.pc.programmer] Mircosoft C _putimage function

elee24@castle.ed.ac.uk (H Bruce) (05/02/90)

The Microsoft C putimage and getimage functions use a 4 byte header that
contains information on the x and y pixel size and the no. of bits per pixel
of the block to be displayed. Does anyone know how this header is formed.
I think it may be a comination of the above three factors and possibly
the graphics mode. Any input would be greatly appreciated.

Thank you,

Henry Bruce

kdq@demott.COM (Kevin D. Quitt) (05/03/90)

		    Internal Structure of data for
		       _getimage and _putimage

The first four bytes consist of width (low byte first) and height
(ditto) information followed by bit planes.  640 wide lines are
represented by 80 bytes of the lsb of the color, followed by 80 bytes
of the 2nd lsb, etc. etc.

Note: the lefthand most pixel is the msb of the byte

kdq

-- 

 _
Kevin D. Quitt                          Manager, Software Development
DeMott Electronics Co.                  VOICE (818) 988-4975
14707 Keswick St.                       FAX   (818) 997-1190
Van Nuys, CA  91405-1266                MODEM (818) 997-4496 Telebit PEP last
34 12 N  118 27 W                       srhqla!demott!kdq   kdq@demott.com

 96.37% of the people who use statistics in arguments make them up.