22 #ifndef TETRAEDGE_TE_TE_IMAGE_H 23 #define TETRAEDGE_TE_TE_IMAGE_H 25 #include "common/fs.h" 26 #include "common/ptr.h" 27 #include "common/stream.h" 28 #include "common/types.h" 29 #include "common/path.h" 31 #include "graphics/managed_surface.h" 33 #include "tetraedge/te/te_color.h" 34 #include "tetraedge/te/te_palette.h" 35 #include "tetraedge/te/te_vector2s32.h" 36 #include "tetraedge/te/te_resource.h" 61 uint64 countPixelsOfColor(
const TeColor &col)
const;
64 createImg(xsize, ysize, palette, newformat, xsize, ysize);
67 Format
format, uint bufxsize, uint bufysize);
70 void drawPlot(
int x,
int y,
const TeColor &col) {
71 drawPlot(
getPixels(), x, y, bufSize(), col);
75 void fill(byte r, byte g, byte b, byte a);
76 void getBuff(uint x, uint y, byte *pout, uint
w, uint
h);
85 Format teFormat()
const {
return _teFormat; }
93 #endif // TETRAEDGE_TE_TE_IMAGE_H Definition: managed_surface.h:51
Definition: te_image.h:40
int16 & w
Definition: managed_surface.h:117
Definition: detection.h:27
int32 & pitch
Definition: managed_surface.h:119
Definition: te_resource.h:31
Definition: te_color.h:30
int16 & h
Definition: managed_surface.h:118
void * getPixels()
Definition: managed_surface.h:269
Definition: te_vector2s32.h:31
PixelFormat & format
Definition: managed_surface.h:120