Thanks for the reply.
I did like this it is working for me.
Bitmap bmp=new Bitmap(640,480,e);// 'e' is a Graphics object of picturebox
for(Point p in listofpoints)
{
bmp.SetPixel(p.X,p.Y,Color.FromArgb(127,255,255,0))
}
e.DrawImage(bmp,0,0);
Hi,
1.I have list of points from the another bitmap(pixels locations actually)
2.I have Graphics object of picture box
3.I want change the pixels color of graphics object using list of points, How to do this?.
I'm drawing shapes on the PictureBox control using Paint event of it.
May I know how to save drawn shapes only on a bitmap without the picture box image(current).
I don't want to save the PictureBox image.
I have created the bitmap from the image(White background image) for saving a drawing on...
I want to get the points from the flood filling algorithm and Is there any flood fill method that returns the filled points?
I have a rectangle in a circle and the rectangle is divided by a line and if a user clicks on any part of the rectangle I will get clicked mouse point and I want to...
I changed the code from pictureBox1.Invalidate() to pictureBox1.Refresh() but the problem exists still.
GraphicsPath path=new GraphicsPath();
private float scale=1.0F;
private bool ActiveWheel=false;
public Form1()
{
path.AddRectangle(new Rectangle(0,0,50,100));
}
private void...
I included the code to project but some issues with my picturebox.Refresh(); I'm could able to spot the extra refresh on the picture box, help me.
code :
GraphicsPath path=new GraphicsPath();
private float scale=1.0F;
private bool ActiveWheel=false;
public Form1()
{
path.AddRectangle(new...
Other shapes are still, they are okay not getting affected by the scaled shape.
you are right I have to translate to the shape original position.
Thank you so much.
Bro, Can it be scaled without moving it?
mean: we will scale to shape after that it scales and translates to some other position on the picture box, can we scale on the original position, right now it feels like scaling and also translating?
Hi,
1. I have a picture box and I have drawn a rectangle shape.
2. If a user clicks on the shape, I can know a shape is clicked or not and based on the stored coordinates.
3. Now I want to provide the resize feature on the shape by using a mouse wheel event(scaling the shape), it can be up or...
Hi,
1.I have picture box and loaded a image to it.
2.when a user draws a shape on the picture box I will store coordinates of the shape and drawn on the loaded image.
3. Now I have updated the project with moving shapes feature on picture box and when user moves the shapes of the picture box...
I had drawn a rectangle shape(GraphicsPath) on the PictureBox in c#.link
I will pick the mouse point(x,y) if a user clicks on the rectangle shape and moves the mouse cursor on the picture box, I will collect the mouse move point also.mouse move point was
I want to do rectangle translation...
1. shapes are drawn already on the picture box
2. I'm storing in a rectangle like this: Rectangle rectangle = new Rectangle(Math.Min(m_iX1,m_iX2),Math.Min(m_iY1,m_iY2),Math.Abs(m_iX2-m_iX1),Math.Abs(m_iY2-m_iY1));
1. I have a shape on the picture box, I know it's position in rectangle object.
2. How to translate the shape according to new (x,y) point given by a user while mouse click?
help me
I'm using AForge library in a project and I want to fill the region with a color, position will be pointed by the user using a mouse on a shapes in the Picture Box control and how to get all filled points in the region or colored points.
I checked the Aforge docs and the class properties Aforge...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.