How to resize an image?

2 posts, 0 answers
  1. Saad
    Saad avatar
    82 posts
    Member since:
    Oct 2008

    Posted 29 Nov 2008 Link to this post

    I have made a code through which i m retrieving images from database. Here`s the code:


    [] Image = Queries.GetImage(Id);



    MemoryStream stream = new MemoryStream();


    stream.Write(Image, 0, Image.Length);


    Bitmap bitmap = new Bitmap(stream);


    bitmap.Save(Response.OutputStream, System.Drawing.Imaging.


    But, the images are to big for my radgrid to show in. I want to resize them before saving the bitmap into the output stream.
    how can i resize it?


  2. Vlad
    Vlad avatar
    11100 posts

    Posted 01 Dec 2008 Link to this post

    Hi saadi,

    Please check this article for more info:

    Sincerely yours,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top