From 3463c77d73bca0a97c89e7a61da7a97ec2c23e6c Mon Sep 17 00:00:00 2001
From: darker <mr.darker@163.com>
Date: 星期五, 17 一月 2025 11:12:32 +0800
Subject: [PATCH] 1.消除编译产生的警告 2.添加Rotate角度的旋转 3.提取绘画图像,并封装成函数

---
 SourceCode/Bond/Servo/ServoGraph.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/ServoGraph.h b/SourceCode/Bond/Servo/ServoGraph.h
index 445d676..0a58675 100644
--- a/SourceCode/Bond/Servo/ServoGraph.h
+++ b/SourceCode/Bond/Servo/ServoGraph.h
@@ -75,6 +75,7 @@
 		HBITMAP hBitmap;
 		int bmWidth;
 		int bmHeight;
+		float angle;
 	} IMAGE;
 
 
@@ -168,6 +169,10 @@
 	HWND GetSafeWnd();
 	void UpdateImageCoordinates(int id, int newX, int newY);
 	void UpdateIndicateBoxCoordinates(int id, int newX, int newY);
+	void UpdateImageAngle(int id, float angle);
+
+private:
+	void DrawImage(HDC hMemDC, IMAGE& item);
 
 private:
 	HWND		m_hWnd;

--
Gitblit v1.9.3