|
||||||
|
Creating the Bitmap | |||||
We will need a bitmap of the original image so we create it here. [C#]
|
||||||
|
Iterating Sizes | |||||
We work in a loop, iterating through the different widths that we want. For each width we establish a suitable size by scaling the image size down. [C#]
|
||||||
|
Making the Thumbnail | |||||
We get the thumbnail image and then dispose of the larger image. [C#]
|
||||||
|
Saving | |||||
We save the thumbnail and then it becomes the image input for the next iteration. This way the amount of image scaling is kept to a minimum. [C#]
|
||||||
|
Tidying Up | |||||
At the end we dispose of the last image. [C#]
|
||||||
|
Input and Output | |||||
Sample input and output images are shown below.
|