Reviewed some comments and WritePNG()
This commit is contained in:
parent
6ffb3c72fb
commit
34db515acb
4 changed files with 15 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue