How to create image thumbnail from C#?

      For some needs, sometime we need to process image for creating image thumbnail. Then you can insert the thumbnail at any place. You can consider creating thumbnail like resizing image at very little specified size. Especially sometime we need to process image like this together with other program languages, like C#, VB.NET, ASP.NET, ASP, PHP, Java, Ruby, Amazon, etc. Based on this needs, VeryPDF developed cloud based application named VeryPDF Image Process Cloud API, by which you can also process image like rotating image, resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.  Please check more related information of this software on homepage, in the following part, let us check how to use this software.

Step 1. Usage of VeryPDF Image Process Cloud API

  • As cloud based application, you need to get an API code by registering an account on registration page. When registration, please prepare an account and a user name.
  • When you use this software, you do not need to download anything. Simply make website connection and open a browser then you can process image. When you call it from C#, simply insert the URL in C# code then you can make it.

Step 2. Process image for creating image thumbnail from C#.

  • First, please check how to use the URL to process image. Here is an example for your reference: Create a thumbnail image 300x300 pixel from a big PNG image,
    When you input the URL, please change the API code to the real API code, which would be sent to your email box at once. And then change the png file to the image file which you need to create thumbnail from it. At then end, please specify the size you need. In the above example, we specify the thumbnail size as 300x300.

  • Second, when call this application to process image from C#, please refer to the following code template:
  • using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.Runtime.Serialization;
    using System.Net;
    using System.IO;
    namespace WindowsFormsApplication1
        public partial class Form1 : Form
            public Form1()
            private void button1_Click(object sender, EventArgs e)
                string url = "
                WebRequest request = HttpWebRequest.Create(url);
                WebResponse response = request.GetResponse();
                StreamReader reader = new StreamReader(response.GetResponseStream());
                string urlText = reader.ReadToEnd();

By this way, you can process image for create thumbnail from big size image. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 1.5/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: -2 (from 2 votes)
How to create image thumbnail from C#?, 1.5 out of 10 based on 2 ratings

Random Posts

This entry was posted in VeryPDF Cloud API and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!