|
|
|||||
|
Creating the Bitmap | |||||
|
We will need a bitmap of the original file so we create it here. [C#]
|
||||||
|
Creating the image | |||||
|
We establish the thumbnail size as the original size width scaled to 120 pixels. [C#]
|
||||||
|
Drawing | |||||
|
We get the thumbnail bitmap. [C#]
|
||||||
|
Saving | |||||
|
Finally we save the picture as a JPEG image. [C#]
|
||||||
|
Input and Output | |||||
|
Sample input and output images are shown below.
|