4
Reply

How to reduce image resolution in C#?

Chinmaya Dash

Chinmaya Dash

Jan 12, 2017
1.3k
1

    Nice one

    Anil Satapathy
    February 27, 2017
    1

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

    Naveen Bisht
    February 25, 2017
    1

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

    Chinmaya Dash
    January 12, 2017
    1

    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

    Anil Satapathy
    February 27, 2017
    0