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

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.
主站蜘蛛池模板: 甘泉县| 灵台县| 维西| 泸定县| 淄博市| 汨罗市| 吉安县| 武清区| 吉安县| 田东县| 墨江| 阳信县| 屏山县| 宁津县| 清镇市| 洛浦县| 大余县| 德州市| 泰兴市| 铁岭县| 基隆市| 马尔康县| 辛集市| 乡宁县| 南投市| 达孜县| 桓台县| 伽师县| 博野县| 友谊县| 稻城县| 西平县| 浠水县| 绥江县| 贵阳市| 息烽县| 亚东县| 龙州县| 焦作市| 浮山县| 谷城县|