Search results for query: *

  1. T

    Question how to do set pixel using graphics object of picturebox ?

    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);
  2. T

    Question how to do set pixel using graphics object of picturebox ?

    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?.
  3. T

    Question How to save picturebox's paint function drawings only on bitmap?

    working on it. I may come back on this later , thank you.
  4. T

    Question How to save picturebox's paint function drawings only on bitmap?

    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...
  5. T

    Question Is there any flood fill function that returns filled color points?

    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...
  6. T

    Question how to provide resize feature based on the mouse wheel up and down to a shape on the picture box

    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...
  7. T

    Question how to provide resize feature based on the mouse wheel up and down to a shape on the picture box

    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...
  8. T

    Question how to provide resize feature based on the mouse wheel up and down to a shape on the picture box

    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.
  9. T

    Question how to provide resize feature based on the mouse wheel up and down to a shape on the picture box

    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?
  10. T

    Question how to provide resize feature based on the mouse wheel up and down to a shape on the picture box

    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...
  11. T

    any other way of removing or moving the shapes drawn on the image of picture box

    Thanks for the reply. I want permanent for some time, I will go through the link.
  12. T

    any other way of removing or moving the shapes drawn on the image of picture box

    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...
  13. T

    Question Why am I getting wrong rectangle(translated), while translation of rectangle(GraphicsPath) on the PictureBox

    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...
  14. T

    Question how to translate(move) shapes on the picture box?

    Thanks bro. TranslateTransform method would help me a lot for sure.
  15. T

    Question how to translate(move) shapes on the picture box?

    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));
  16. T

    Question how to translate(move) shapes on the picture box?

    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
  17. T

    Question Is there any function or way to find out the region or points, filled by AForge.PointedMeanFloodFill class?

    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...
Back
Top Bottom