I have an application that puts images into a PictureBox and draws a circle in it.
The application consists of 2 steps:
- An image is loaded into the
PictureBox - A circle is drawn directly into the
PictureBoxwith a given specification of the Radius/Diameter (In Pixels) and the position of the circle's center with theX, Yof the picture inside thePictureBox. (For example if the given coordinates are44,44then the center of the circle will be at44,44.
My goal is to use the most efficient method to draw an orange, gradient circle (see image under) into an image already in a PictureBox, overlaying it. Preferably, I would like a method that does not save the image to the computer as the image inside the box is uploaded every second.
Also, I was thinking of using System.Drawing to use draw a circle directly into a picture that exists in a picturebox but it doesn't look the best (the circle is grainy and pixelated) and there isn't a working gradient option for me.
An example of the circle I want to draw is displayed in the image below. I've attached a picture below of what a drawn circle onto the PictureBox should look like: 
My idea is directly drawing this circle into the PictureBox without having to save the picture to the PC, as this image in the PictureBox gets updated every second and that won't be efficient.
How can I do this? Is there a function in System.Drawing that can do this or a NuGet Package I can use? (Drawing a Orange Circular Gradiant Circle onto an image already present in a PictureBox?
没有评论:
发表评论