Hi,
How to improve the quality of the image when zoomed.
Thanks in advance...
Hi,
How to improve the quality of the image when zoomed.
Thanks in advance...
Jump to PostYou 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.
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;
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)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.