39 #if defined(TARGET_HOST_WIN32) || defined(TARGET_HOST_WINCE) 50 unsigned int nWidth,
unsigned int nHeight)
52 unsigned int i, size = nWidth * nHeight;
65 void flipImageY(
unsigned char* nDstBuffer,
unsigned const char* nSrcBuffer,
int nWidth,
int nHeight,
int nPixelSize)
67 int i, span = nPixelSize*nWidth;
69 for(i=0; i<nHeight; i++)
70 memcpy(nDstBuffer+i*span, nSrcBuffer+(nHeight-1-i)*span, span);
76 #pragma pack( push, 1 ) 99 FILE* fp = fopen(nFileName,
"wb");
116 unsigned char *tmpBuf =
new unsigned char[size], *tmpBuf2 =
new unsigned char[size];
121 fwrite(tmpBuf2, 1, size, fp);
int getHeight() const
Returns the height of the image.
int getWidth() const
Returns the width of the image.
The Image class provides basic RGB565 image handing capabilities.
unsigned short * getPixels()
Returns the pixel buffer.