From f982455916297ab07379d902a7f15b7a7a867c94 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 20 十月 2021 09:19:20 +0800
Subject: [PATCH] 1
---
HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs
index 2d86ddd..58570c9 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs
@@ -41,6 +41,16 @@
Button btnCancel;
#endregion
+ /// <summary>
+ /// imageHeight
+ /// OutputYSize 400浠h〃Y鍒嗚鲸鐜囬珮鐨勫�硷紝鎵�浠ユ渶缁堝緱鍒板浘鐗囩殑鍒嗚鲸鐜囦负锛�266*400
+ /// 0浠h〃涓嶆寚瀹氫笉鍘嬬缉,鐩存帴淇濆瓨瑁佸壀鍚庣殑鍥剧墖锛岀洰鍓嶅彧瀵筰OS鏈夋晥 Android璁剧疆灏忎簬0鐨勮瘽榛樿800
+ /// </summary>
+#if __IOS__
+ const int imageHeight = 0;
+#else
+ const int imageHeight = 400;
+#endif
@@ -98,7 +108,7 @@
topView.AddChidren(new Button() { Height = 1, BackgroundColor = CSS_Color.DividingLineColor, Y = Application.GetRealHeight(188), X = Application.GetRealWidth(16), Width = Application.GetRealWidth(359) });
- #region 绀惧尯闂ㄧ閫氳
+#region 绀惧尯闂ㄧ閫氳
var communityRow = new FrameLayout()
{
Y = topView.Bottom,
@@ -147,7 +157,7 @@
editFaceInfo(switchStatus, action);
};
- #endregion
+#endregion
var btnTip = new Button()
@@ -181,7 +191,7 @@
{
LoadPictureOptionView();
};
-
+ //鎶规帀鏁版嵁
btnEraseData = new Button()
{
Y = Application.GetRealHeight(481),
@@ -435,7 +445,7 @@
CropImage.TakePicture((imagePath) =>
{
CropImageCallBack(imagePath, 1, imageName);
- }, imageName, 4, 6, 400);
+ }, imageName, 4, 6, imageHeight);
pictureOptionView.Parent.RemoveFromParent();
};
@@ -453,7 +463,7 @@
CropImage.SelectPicture((imagePath) =>
{
CropImageCallBack(imagePath, 2, imageName);
- }, imageName, 4, 6, 400);//OutputYSize鐩墠浠呭Android鏈変簺 400浠h〃Y鐨勬渶澶氬垎杈ㄧ巼锛屾墍浠ユ渶缁堝緱鍒板浘鐗囩殑鍒嗚鲸鐜囦负锛�266*400
+ }, imageName, 4, 6, imageHeight);
pictureOptionView.Parent.RemoveFromParent();
};
@@ -485,14 +495,14 @@
CropImage.TakePicture((imagePath) =>
{
CropImageCallBack(imagePath, 2, imageName);
- }, imageName, 4, 6, 400);
+ }, imageName, 4, 6, imageHeight);
}
else
{
CropImage.SelectPicture((imagePath) =>
{
CropImageCallBack(imagePath, 1, imageName);
- }, imageName, 4, 6, 400);
+ }, imageName, 4, 6, imageHeight);
}
}
};
@@ -537,6 +547,7 @@
try
{
string base64string = Convert.ToBase64String(imageBytes);
+ //Utlis.WriteLine("涓婁紶鍥剧墖Length:" + imageBytes.Length + " base64锛�" + base64string);
var pack = new HttpServerRequest().FaceSetting(base64string);
if (pack != null)
{
--
Gitblit v1.8.0