F
F
foxlye2019-11-22 19:50:46
C++ / C#
foxlye, 2019-11-22 19:50:46

How to round an image in a picturebox?

How to round an image in a picturebox ?
5dd811e424367652541281.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yuopi, 2019-11-22
@foxlye

System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
            gp.AddEllipse(0, 0, pictureBox1.Width - 3, pictureBox1.Height - 3);
            Region rg = new Region(gp);
            pictureBox1.Region = rg; //pictureBox1 - ваш бокс

write in form constructor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question