圖片路徑修正

This commit is contained in:
allen.yan 2025-08-06 11:24:51 +08:00
parent bb00bf6e99
commit 5ecef1c6cf
2 changed files with 6 additions and 6 deletions

View File

@ -425,7 +425,7 @@ namespace DualScreenDemo
{ {
PictureBox icon = new PictureBox() PictureBox icon = new PictureBox()
{ {
Image = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\其他符號_人聲\其他符號_人聲.png")), Image = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\其他符號_人聲.png")),
SizeMode = PictureBoxSizeMode.Zoom, SizeMode = PictureBoxSizeMode.Zoom,
Size = new Size(30, 30), Size = new Size(30, 30),
Location = new Point(songX + 5, y + 8) Location = new Point(songX + 5, y + 8)

View File

@ -26,7 +26,7 @@ namespace DualScreenDemo
vodButton = new Button(); vodButton = new Button();
vodButton.Text = ""; vodButton.Text = "";
ResizeAndPositionButton(vodButton, xPosition - 119, yPosition + 35, 110, 50); ResizeAndPositionButton(vodButton, xPosition - 119, yPosition + 35, 110, 50);
vodButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\點播介面\點播介面_點歌.png")); vodButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\歌曲點播_空白介面.png"));
vodButton.BackgroundImageLayout = ImageLayout.Stretch; vodButton.BackgroundImageLayout = ImageLayout.Stretch;
vodButton.FlatStyle = FlatStyle.Flat; vodButton.FlatStyle = FlatStyle.Flat;
vodButton.FlatAppearance.BorderSize = 0; vodButton.FlatAppearance.BorderSize = 0;
@ -40,7 +40,7 @@ namespace DualScreenDemo
insertButton = new Button(); insertButton = new Button();
insertButton.Text = ""; insertButton.Text = "";
ResizeAndPositionButton(insertButton, xPosition + 12 , yPosition + 35, 110, 50); ResizeAndPositionButton(insertButton, xPosition + 12 , yPosition + 35, 110, 50);
insertButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\點播介面\點播介面_插播.png")); insertButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\歌曲點播_插播.png"));
insertButton.BackgroundImageLayout = ImageLayout.Stretch; insertButton.BackgroundImageLayout = ImageLayout.Stretch;
insertButton.FlatStyle = FlatStyle.Flat; insertButton.FlatStyle = FlatStyle.Flat;
insertButton.FlatAppearance.BorderSize = 0; insertButton.FlatAppearance.BorderSize = 0;
@ -54,7 +54,7 @@ namespace DualScreenDemo
albumButton = new Button(); albumButton = new Button();
albumButton.Text = ""; albumButton.Text = "";
ResizeAndPositionButton(albumButton, xPosition + 142, yPosition + 35, 140, 50); ResizeAndPositionButton(albumButton, xPosition + 142, yPosition + 35, 140, 50);
albumButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\點播介面\點播介面_歷年專輯.png")); albumButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\歌曲點播_歷年專輯.png"));
albumButton.BackgroundImageLayout = ImageLayout.Stretch; albumButton.BackgroundImageLayout = ImageLayout.Stretch;
albumButton.FlatStyle = FlatStyle.Flat; albumButton.FlatStyle = FlatStyle.Flat;
albumButton.FlatAppearance.BorderSize = 0; albumButton.FlatAppearance.BorderSize = 0;
@ -68,7 +68,7 @@ namespace DualScreenDemo
favoriteButton = new Button(); favoriteButton = new Button();
favoriteButton.Text = ""; favoriteButton.Text = "";
ResizeAndPositionButton(favoriteButton, xPosition + 302, yPosition + 35, 140, 50); ResizeAndPositionButton(favoriteButton, xPosition + 302, yPosition + 35, 140, 50);
favoriteButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\點播介面\點播介面_我的最愛.png")); favoriteButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\歌曲點播_我的最愛.png"));
favoriteButton.BackgroundImageLayout = ImageLayout.Stretch; favoriteButton.BackgroundImageLayout = ImageLayout.Stretch;
favoriteButton.FlatStyle = FlatStyle.Flat; favoriteButton.FlatStyle = FlatStyle.Flat;
favoriteButton.FlatAppearance.BorderSize = 0; favoriteButton.FlatAppearance.BorderSize = 0;
@ -97,7 +97,7 @@ namespace DualScreenDemo
vodScreenCloseButton = new Button(); vodScreenCloseButton = new Button();
vodScreenCloseButton.Text = ""; vodScreenCloseButton.Text = "";
ResizeAndPositionButton(vodScreenCloseButton, xPosition + 462, yPosition + 35, 110, 50); ResizeAndPositionButton(vodScreenCloseButton, xPosition + 462, yPosition + 35, 110, 50);
vodScreenCloseButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\點播介面\點播介面_關閉.png")); vodScreenCloseButton.BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, @"themes\superstar\button\3.介面\歌曲點播_關閉.png"));
vodScreenCloseButton.BackgroundImageLayout = ImageLayout.Stretch; vodScreenCloseButton.BackgroundImageLayout = ImageLayout.Stretch;
vodScreenCloseButton.FlatStyle = FlatStyle.Flat; vodScreenCloseButton.FlatStyle = FlatStyle.Flat;
vodScreenCloseButton.FlatAppearance.BorderSize = 0; vodScreenCloseButton.FlatAppearance.BorderSize = 0;