4
Reply

How to reduce image resolution in C#?

Chinmaya Dash

Chinmaya Dash

7y
1.4k
1
Reply

    Nice one

    hey kindly try this. https://www.codeproject.com/Questions/461866/Change-Image-Resolutionbut i will suggest you use jquery for same

    using (Bitmap bitmap = (Bitmap)Image.FromFile("file.jpg")){using (Bitmap newBitmap = new Bitmap(bitmap)){newBitmap.SetResolution(300, 300);newBitmap.Save("file300.jpg", ImageFormat.Jpeg);}}

    using (Bitmap bitmap = (Bitmap)Image.FromFile("file.jpg")){using (Bitmap newBitmap = new Bitmap(bitmap)){newBitmap.SetResolution(300, 300);newBitmap.Save("file300.jpg", ImageFormat.Jpeg);}}0