Reviewed some comments and WritePNG()

This commit is contained in:
raysan5 2015-10-06 17:13:40 +02:00
parent 6ffb3c72fb
commit 34db515acb
4 changed files with 15 additions and 11 deletions

View file

@ -160,9 +160,9 @@ void WriteBitmap(const char *fileName, unsigned char *imgData, int width, int he
// Creates a PNG image file from an array of pixel data
// NOTE: Uses stb_image_write
void WritePNG(const char *fileName, unsigned char *imgData, int width, int height)
void WritePNG(const char *fileName, unsigned char *imgData, int width, int height, int compSize)
{
stbi_write_png(fileName, width, height, 4, imgData, width*4); // It WORKS!!!
stbi_write_png(fileName, width, height, compSize, imgData, width*compSize);
}
#endif