there!
I forgot to use etc ... just the code:
var image = Image.FromFile(); var bitmap = new Bitmap(image.Width, image.Height); var canvas = Graphics.FromImage(bitmap); var brush = new SolidBrush(); canvas.FillRectangle(brush, 0, 0, image.Width, image.Height); canvas.DrawImage(image, new Rectangle(0, 0, image.Width, image.Height)); canvas.Save(); bitmap.Save();
I want to draw an image with alpha 55% on canvas . image is a .png file and uses transparency. (NOTE: I do not want to do image.MakeTransparent() - it is already transparent, I just need an alpha effect)
how can i achieve this
c # gdi +
Andreas Niedermair
source share