Color.FromArgb(Int32, Color) funktioniert nicht

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Color.FromArgb(Int32, Color) funktioniert nicht

by Guest » 13 Jan 2025, 20:00

Code: Select all

Label label = new Label();
label.Text = "123";
label.Location = new Point(100, 100);
label.ForeColor = Color.FromArgb(50, Color.Blue);
this.Controls.Add(label);
Image

Alpha Kanal funktioniert nicht. Wenn ich 255 statt 50 eingebe, ist es dasselbe. Wie kann ich dann ein transparentes Etikett erstellen?

Top