7 Years
Discussion Span
Last Post by buyoh

You can't, that's a TV myth. Zooming in on a black pixel just makes a larger black pixel. There are no super algorithms that will make the zoom image show you more detail, as there is no more detail to show.


Sorry i not given much info..

I have loaded a image in a picture box and tries to zoom the image ans i have succeed on this.now how i improve the quality of the image when zoomed.


the below solved the problem..

//sz1 is the screen resolution of the primary system
sz1.Width +=50;
sz1.height +=50;
  Bitmap bp;

            bp = new Bitmap(sz1.Width/2, sz1.Height);
            bp.SetResolution(300, 300);
            g = Graphics.FromImage(bp);
            g.SmoothingMode = SmoothingMode.HighQuality;
            g.InterpolationMode = InterpolationMode.HighQualityBicubic;
            g.PixelOffsetMode = PixelOffsetMode.HighQuality;
            rect = new Rectangle(0, 0, sz1.Width / 2, sz1.Height);
            g.DrawImage(image, rect,0, 0, image.Width, image.Height, GraphicsUnit.Pixel);

            pictureBox1.Width  = rect.Width;
            pictureBox1.Height = rect.Height;

Edited by Nivass: n/a


Hi The must easy way is to use a picture which have a large size let say 900 X 500 or more depending on what you what to use it for.
Bills (Buyoh)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.