官术网_书友最值得收藏!

Project: Thumbnail Maker

Let's take up a project now. We will apply some of the operations we learned in this chapter to create a simple Thumbnail Maker utility. This application will accept an image as an input and will create a resized image of that image. Although we are calling it a thumbnail maker, it is a multi-purpose utility that implements some basic image-processing functionality.

Before proceeding further, make sure that you have installed all the packages discussed at the beginning of this chapter. The screenshot of the Thumbnail Maker dialog is show in the following illustration.

The Thumbnail Maker GUI has two components:

  1. The left panel is a 'control area', where you can specify certain image parameters along with options for input and output paths.
  2. A graphics area on the right-hand side where you can view the generated image.

In short, this is how it works:

  1. The application takes an image file as an input.
  2. It accepts user input for image parameters such as dimensions in pixel, filter for re-sampling and rotation angle in degrees.
  3. When the user clicks the OK button in the dialog, the image is processed and saved at a location indicated by the user in the specified output image format.
主站蜘蛛池模板: 正阳县| 象山县| 沿河| 罗江县| 南充市| 方山县| 措勤县| 蒲城县| 南丹县| 溆浦县| 庆元县| 建平县| 伽师县| 金阳县| 南靖县| 深水埗区| 石屏县| 宁乡县| 红桥区| 屯留县| 盐源县| 翁牛特旗| 肇源县| 罗平县| 海门市| 攀枝花市| 斗六市| 班戈县| 阿鲁科尔沁旗| 呼伦贝尔市| 徐闻县| 乌鲁木齐县| 贡觉县| 喀什市| 通城县| 克拉玛依市| 克东县| 灵璧县| 浏阳市| 贵阳市| 沧州市|