Compare commits

..
9 Commits
Author SHA1 Message Date
zhaidi 4afa471fb6 修改压缩比例quality为100 2024-03-30 23:45:02 +08:00
zhaidi a19ba493b3 修改压缩比例 2024-03-30 23:18:10 +08:00
zhaidi c95f4f7501 修改ios选择,删除拍照按钮的位置 2024-03-30 20:51:49 +08:00
zhaidi 6c38d126ec 修改ios选择,删除拍照按钮的位置 2024-03-30 20:20:33 +08:00
zhaidi ffaef73016 修改ios选择,删除拍照按钮的位置 2024-03-30 20:02:52 +08:00
zhaidi 4d59795df1 修改ios选择,删除拍照按钮的位置 2024-03-30 20:02:02 +08:00
zhaidi 6e82b526a2 修改ios选择,删除拍照按钮的位置 2024-03-30 19:46:27 +08:00
zhaidi f13d7c7aa4 压缩比例改为100 2024-03-30 19:02:26 +08:00
zhaidi 2c804cea55 修改“拍照按钮”的高度y="513" 改为 y="463"
修改“自拍按钮”的位置 x="180" 改为 x="230"
2024-03-28 10:01:53 +08:00
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
this.targetWidth = 0;
this.encodingType = JPEG;
this.mediaType = PICTURE;
this.mQuality = 50;
this.mQuality = 100;
//Take the values from the arguments if they're not already defined (this is tricky)
this.destType = args.getInt(1);
+1 -1
View File
@@ -63,7 +63,7 @@ static NSString* toBase64(NSData* data) {
{
CDVPictureOptions* pictureOptions = [[CDVPictureOptions alloc] init];
pictureOptions.quality = [command argumentAtIndex:0 withDefault:@(50)];
pictureOptions.quality = [command argumentAtIndex:0 withDefault:@(100)];
pictureOptions.destinationType = [[command argumentAtIndex:1 withDefault:@(DestinationTypeFileUri)] unsignedIntegerValue];
pictureOptions.sourceType = [[command argumentAtIndex:2 withDefault:@(UIImagePickerControllerSourceTypeCamera)] unsignedIntegerValue];
@@ -44,7 +44,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</imageView>
<button opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" enabled="NO" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="usa-GD-lMO">
<rect key="frame" x="135" y="513" width="50" height="50"/>
<rect key="frame" x="135" y="463" width="50" height="50"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES"/>
<state key="normal" image="icon_capture.png"/>
<state key="selected" image="icon_capture_pressed.png"/>
@@ -58,7 +58,7 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
</imageView>
<view alpha="0.5" contentMode="scaleToFill" id="AJN-IB-tiU">
<rect key="frame" x="0.0" y="508" width="320" height="60"/>
<rect key="frame" x="0.0" y="488" width="320" height="80"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="9ml-dK-r4P">
@@ -84,7 +84,7 @@
</connections>
</button>
<button opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="gCj-9O-Lhz">
<rect key="frame" x="245" y="15" width="30" height="30"/>
<rect key="frame" x="245" y="5" width="30" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
<state key="normal" image="icon_submit.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -94,7 +94,7 @@
</connections>
</button>
<button opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="J6B-b3-9jL">
<rect key="frame" x="45" y="15" width="30" height="30"/>
<rect key="frame" x="45" y="5" width="30" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<state key="normal" image="icon_delete.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -122,7 +122,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="jnK-sC-Roz">
<rect key="frame" x="180" y="15" width="30" height="30"/>
<rect key="frame" x="230" y="15" width="30" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
<state key="normal" image="icon_flip.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
+1 -1
View File
@@ -40,7 +40,7 @@ static NSString* toBase64(NSData* data) {
{
CDVPictureOptions* pictureOptions = [[CDVPictureOptions alloc] init];
pictureOptions.quality = [command argumentAtIndex:0 withDefault:@(50)];
pictureOptions.quality = [command argumentAtIndex:0 withDefault:@(100)];
pictureOptions.destinationType = [[command argumentAtIndex:1 withDefault:@(DestinationTypeFileUri)] unsignedIntegerValue];
pictureOptions.sourceType = [[command argumentAtIndex:2 withDefault:@(UIImagePickerControllerSourceTypeCamera)] unsignedIntegerValue];
+1 -1
View File
@@ -136,7 +136,7 @@ cameraExport.getPicture = function (successCallback, errorCallback, options) {
options = options || {};
var getValue = argscheck.getValue;
var quality = getValue(options.quality, 50);
var quality = getValue(options.quality, 100);
var destinationType = getValue(options.destinationType, Camera.DestinationType.FILE_URI);
var sourceType = getValue(options.sourceType, Camera.PictureSourceType.CAMERA);
var targetWidth = getValue(options.targetWidth, -1);