mirror of
https://gitee.com/shuto/customCamera.git
synced 2026-05-02 00:07:24 +08:00
Ajout de la possibilité de régler la qualité de la photo.
This commit is contained in:
+4
-2
@@ -20,8 +20,9 @@
|
||||
miniature: true, // active or disable the miniature function.
|
||||
saveInGallery: false, // save or not the picture in gallery.
|
||||
cameraBackgroundColor: "#e26760", // color of the camera button.
|
||||
cameraBackgroundColorPressed: "#dc453d" // color of the pressed camera button.
|
||||
cameraBackgroundColorPressed: "#dc453d", // color of the pressed camera button.
|
||||
// To get supported color formats, go to see method parseColor : http://developer.android.com/reference/android/graphics/Color.html#parseColor(java.lang.String)
|
||||
quality: 100 // picture's quality : range 0 - 100 : http://developer.android.com/reference/android/graphics/Bitmap.html#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream) (parameter "quality")
|
||||
};
|
||||
|
||||
for (var nameOption in defaultOptions) {
|
||||
@@ -48,7 +49,8 @@
|
||||
options.miniature,
|
||||
options.saveInGallery,
|
||||
options.cameraBackgroundColor,
|
||||
options.cameraBackgroundColorPressed
|
||||
options.cameraBackgroundColorPressed,
|
||||
options.quality
|
||||
]
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user