Index: ui/gfx/image/image_util.h |
=================================================================== |
--- ui/gfx/image/image_util.h (revision 111060) |
+++ ui/gfx/image/image_util.h (working copy) |
@@ -28,8 +28,9 @@ |
std::vector<unsigned char>* dst); |
// Fills the |dst| vector with JPEG-encoded bytes based on the given Image. |
+// |quality| determines the compression level, 0 == lowest, 100 == highest. |
// Returns true if the Image was encoded successfully. |
-UI_EXPORT bool JPEGEncodedDataFromImage(const Image& image, |
+UI_EXPORT bool JPEGEncodedDataFromImage(const Image& image, int quality, |
sky
2011/11/28 15:44:37
nit: each param on its own line.
csilv
2011/11/28 18:04:41
Done.
|
std::vector<unsigned char>* dst); |
} |