Hi im trying to overlap 2 images with transparent backgrounds. i heard i can use the OnPaint method to do this so i tried
protected override void OnPaint(PaintEventArgs e)
{
System.Drawing.Graphics obj;
obj = this.CreateGraphics();
int x = 0;
int y = 0;
System.Drawing.Point point = new Point(x, y);
obj.Clear(Color.White);
obj.DrawImage(System.Drawing.Image.FromFile(@"C:\Users\William\Documents\Sprites\Player\Male\Default\Light.png"), point);
obj.Dispose();
}
but im not sure how to draw another one on top of it and if it will be transparent, any help is appriciated