|
@@ -215,7 +215,7 @@ namespace WebManager
|
|
|
/// </summary>
|
|
|
/// <param name="imagePath">图片路径</param>
|
|
|
/// <returns>json字符串</returns>
|
|
|
- public void Img_Trapezoid_Top_Center_Position(String imagePath, out double offsetx, out double offsety, out int state)
|
|
|
+ public void Img_Trapezoid_Top_Center_Position(String imagePath, out float offsetx, out float offsety, out int state)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
@@ -234,8 +234,8 @@ namespace WebManager
|
|
|
{
|
|
|
JObject jname = JObject.Parse(jret["img_name"].ToString());
|
|
|
JArray jlocation = JArray.Parse(jname["top_center"].ToString());
|
|
|
- offsetx = Convert.ToDouble(jlocation[0].ToString());
|
|
|
- offsety = Convert.ToDouble(jlocation[1].ToString());
|
|
|
+ offsetx = Convert.ToSingle(jlocation[0].ToString());
|
|
|
+ offsety = Convert.ToSingle(jlocation[1].ToString());
|
|
|
state = Convert.ToInt32(jname["state"].ToString());
|
|
|
}
|
|
|
else
|
|
@@ -362,7 +362,7 @@ namespace WebManager
|
|
|
/// <param name="ratio">放大倍数</param>
|
|
|
/// <param name="size">一像素代表**mm/um</param>
|
|
|
/// <returns>json字符串</returns>
|
|
|
- public void Img_Measure_Size(String imagePath, String ratio, String size, out int state)
|
|
|
+ public void Img_Measure_Size(String imagePath, float ratio, float size, out int state)
|
|
|
{
|
|
|
try
|
|
|
{
|