BlckViper
BlckViper
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
@Motley I think I already tried that but it doesn’t work
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
Thanks a lot for your comment but the parameter with .BackColor = Color.Transparent doesn't work
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
Can you give me a little snippet of what you mean? Like insert it into the snippet if its that what you mean?
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
Okay
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
But it isn't a button. Can you show me with a little snippet what you mean? 😄
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
Hm, I‘ll try it later after I‘m home from work :harold:
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
Yeah i think thats the problem i‘m running into :hidethepain:
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
Should be transparent.
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
c# win forms with .net
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
If that helps kind a bit
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
public void ShowImage(string imagePath)
{
Bitmap image = new Bitmap(imagePath);


image.MakeTransparent(Color.Transparent);

PictureBox pictureBox = new PictureBox
{
Image = image,
SizeMode = PictureBoxSizeMode.AutoSize,

};
this.Controls.Add(pictureBox);
this.ClientSize = pictureBox.Size;
}
public void ShowImage(string imagePath)
{
Bitmap image = new Bitmap(imagePath);


image.MakeTransparent(Color.Transparent);

PictureBox pictureBox = new PictureBox
{
Image = image,
SizeMode = PictureBoxSizeMode.AutoSize,

};
this.Controls.Add(pictureBox);
this.ClientSize = pictureBox.Size;
}
26 replies
CC#
Created by BlckViper on 6/18/2024 in #help
png image but background is not transparent
I have a problem. I have a png but the background is not transparent as presented in the attached img. If you have an answer please ping me ^^ :pepeOkayThumb:
26 replies