From 923c9c3debf0283c8a025f56174c6305c70392ee Mon Sep 17 00:00:00 2001 From: Benji Smith Date: Mon, 31 Jul 2017 22:22:56 -0700 Subject: [PATCH] Correct function signature in stbi_write_jpg usage documentation. --- stb_image_write.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image_write.h b/stb_image_write.h index 9d553e0..d9ab544 100644 --- a/stb_image_write.h +++ b/stb_image_write.h @@ -35,7 +35,7 @@ USAGE: int stbi_write_bmp(char const *filename, int w, int h, int comp, const void *data); int stbi_write_tga(char const *filename, int w, int h, int comp, const void *data); int stbi_write_hdr(char const *filename, int w, int h, int comp, const float *data); - int stbi_write_jpg(char const *filename, int w, int h, int comp, const float *data); + int stbi_write_jpg(char const *filename, int w, int h, int comp, const float *data, int quality); There are also four equivalent functions that use an arbitrary write function. You are expected to open/close your file-equivalent before and after calling these: