From fec341de45f4b3fd1825807f0b3261143fa13caa Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期一, 29 十二月 2025 17:03:45 +0800
Subject: [PATCH] 修复部分显示工具为面向对象。

---
 LB_VisionProcesses/Alogrithms/BaseAlgorithm/TAlgorithm.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/LB_VisionProcesses/Alogrithms/BaseAlgorithm/TAlgorithm.cs b/LB_VisionProcesses/Alogrithms/BaseAlgorithm/TAlgorithm.cs
index 919f3bd..a024c9d 100644
--- a/LB_VisionProcesses/Alogrithms/BaseAlgorithm/TAlgorithm.cs
+++ b/LB_VisionProcesses/Alogrithms/BaseAlgorithm/TAlgorithm.cs
@@ -521,13 +521,13 @@
                 return value;
         }
 
-        public static HImage Bitmap2HObject(Bitmap bmp)
+        public static HImage Bitmap2HImage(Bitmap bmp)
         {
             BitmapData srcBmpData;
             HImage image = null;
             try
             {
-                if (bmp.Tag != null && bmp == null || bmp.Width == 0 || bmp.Height == 0)
+                if (bmp.Tag == null || bmp == null || bmp.Width == 0 || bmp.Height == 0)
                 {
                     image = null;
                     return image;
@@ -601,7 +601,7 @@
             }
         }
 
-        public static unsafe void HObject2Bitmap(HImage hImage, out Bitmap bmp)
+        public static unsafe void HImage2Bitmap(HImage hImage, out Bitmap bmp)
         {
             try
             {
@@ -685,7 +685,7 @@
             }
         }
 
-        public static HImage Mat2HObject(Mat mat)
+        public static HImage Mat2HImage(Mat mat)
         {
             HImage image = null;
             try

--
Gitblit v1.9.3