1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to calculate Pixel when zoom the image.

Discussion in 'C#' started by Nivass, Aug 28, 2010.

  1. Nivass

    Nivass New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:

    I have loaded the image in the picture box. I have clicked with mouse at a point on the image and get the pixel value for that point (using e.x and e.y). now i zoom the image.

    How to get the pixel of the same point in zoomed position on run time. (I don't want to click again at the same position after zoomed). zoom the image by adding 50 to picture box width and height.

    //picturebox mouse click
    Color pixel = mybitmap1.GetPixel(e.x, e.y);
    Thanks in advance......

Share This Page