清除語別標籤

This commit is contained in:
jasonchenwork 2025-05-12 14:01:49 +08:00
parent 2883ab89af
commit 1a02bfdde0

View File

@ -11,7 +11,7 @@ namespace DualScreenDemo
private void InitializeButton(ref Button button, string buttonText, int x, int y, int width, int height, Rectangle cropArea, Image normalBackground, out Bitmap normalBackgroundOut, Image activeBackground, out Bitmap activeBackgroundOut, EventHandler clickEventHandler)
{
button = new Button { Text = buttonText, Visible = false };
button = new Button { Text = "", Visible = false };
ResizeAndPositionButton(button, x, y, width, height);
normalBackgroundOut = new Bitmap(normalBackground).Clone(cropArea, normalBackground.PixelFormat);
activeBackgroundOut = new Bitmap(activeBackground).Clone(cropArea, activeBackground.PixelFormat);