Files
core/ASCImageStudio3/ASCGraphics/Objects/Font/GlyphBitmap.h

30 lines
1016 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _GLYPH_BITMAP_H
#define _GLYPH_BITMAP_H
//-------------------------------------------------------------------------------------------------------------------------------
// TGlyphBitmap
//-------------------------------------------------------------------------------------------------------------------------------
struct TGlyphBitmap
{
int nX; // Сдвиг по X начальной точки для рисования символа
int nY; // Сдвиг по Y начальной точки для рисования символа
int nWidth; // Ширина символа
int nHeight; // Высота символа
BOOL bAA; // Anti-aliased: True означает, что Bitmap 8-битный(т.е. с альфой); False - Bitmap 1-битный
unsigned char *pData; // Bitmap data(картинка с символом)
BOOL bFreeData; // True, если память в pData нужно освободить
TGlyphBitmap()
{
nX = 0;
nY = 0;
nWidth = 0;
nHeight = 0;
bAA = FALSE;
pData = NULL;
bFreeData = NULL;
}
};
#endif /* _GLYPH_BITMAP_H */