mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-10 12:35:08 +00:00
Reviewed some comments and WritePNG()
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user