Image Resizing in ASP.Net 2.0

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alok Shukla

    Image Resizing in ASP.Net 2.0

    Hello,

    I am working in an application where I need to increase the image resolution.

    Suppose if the user provides an image of height and width 150 x 100, I want to increase the image size to some 400 x 350 and save it.

    I have searched many articles but they all are for decreasing the image size. Some are there but they are plug-ins. I don’t want to use any plug-in.
    I want to achieve this through code. Please guide me in this.

    I am using ASP.Net 2.0 with C#.

    Thanks in advance,
    Alok

  • Peter Morris

    #2
    Re: Image Resizing in ASP.Net 2.0

    I don't understand. A thumbnail is just an image resized to smaller
    dimensions, why not use the same code to resize to a larger size?





    Pete

    Comment

    • =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=

      #3
      RE: Image Resizing in ASP.Net 2.0

      Create a new bitmap of the required size and DrawImage() on its graphics (got
      by calling CreateGraphics( ) I believe) passing 0,0 as the location and the
      full size as the height and width.


      --
      Ciaran O''Donnell



      "Alok Shukla" wrote:
      Hello,
      >
      I am working in an application where I need to increase the image resolution.
      >
      Suppose if the user provides an image of height and width 150 x 100, I want to increase the image size to some 400 x 350 and save it.
      >
      I have searched many articles but they all are for decreasing the image size. Some are there but they are plug-ins. I don’t want to use any plug-in.
      I want to achieve this through code. Please guide me in this.
      >
      I am using ASP.Net 2.0 with C#.
      >
      Thanks in advance,
      Alok
      >
      >

      Comment

      Working...