Mercurial > hg > dmlib
comparison tools/libgfx.h @ 1628:a549d33d543a
Add image aspect ratio information.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 16 May 2018 15:42:24 +0300 |
parents | 36d073c45327 |
children | 59c2b08a80a6 |
comparison
equal
deleted
inserted
replaced
1627:d0e626e039bf | 1628:a549d33d543a |
---|---|
70 { | 70 { |
71 int format; // one of types specified by DM_IFMT_* | 71 int format; // one of types specified by DM_IFMT_* |
72 int width, height; | 72 int width, height; |
73 int pitch; // bytes per scanline | 73 int pitch; // bytes per scanline |
74 int bpp; // bits per pixel | 74 int bpp; // bits per pixel |
75 | |
76 float aspect; // aspect ratio (vert / horiz), <= 0 if not set | |
75 | 77 |
76 int ncolors; // number of colors in palette, if any | 78 int ncolors; // number of colors in palette, if any |
77 int ctransp; // transparency color index | 79 int ctransp; // transparency color index |
78 BOOL constpal; // is the palette a const? | 80 BOOL constpal; // is the palette a const? |
79 DMColor *pal; // pointer to palette struct, NULL if no palette | 81 DMColor *pal; // pointer to palette struct, NULL if no palette |