Krzysztof Mossakowski
Windows Programming
2009 - Tasks
Cross-sectional task
Image transformations
Demonstration
Functionality:
Choosen image displayed in client area
Resizeable window
Menu:
File\Load Bitmap (Ctrl+O) - opens a system dialog do file selection, filter should be set to "Bitmaps (*.bmp)"
File\Options (Ctrl+F9) - opens dialog with image transformations settings
File\Exit - ends application
Channels\R (Alt+R) - enables/disables image's red channel
Channels\G (Alt+G) - enables/disables image's green channel
Channels\B (Alt+B) - enables/disables image's blue channel
Zoom\50%, 100% and 200% - image zoom
Technical requirements:
Settings dialog
a group of 3 check box - enabled/disabled image's channels
a group of 2 check box - image transformations
flip horizontal
flip vertical
OK
button - accept settings, refresh image
Cancel
button - cancel changes, no image refresh
all active menu items are checked (enabled color channels, selected zoom)
dialog settings checked and active menu setting are corresponding
hotkeys
Alt+H - flip horizontal
Alt+V - flip vertical
"+" - incrase zoom
"-" - decrase zoom
Approximate points:
system open file dialog, image loading and displaying: 2.0
flip horizontal, flip vertical: 1.0
color channels disable/enable: 2.0
zoom: 1.0
options dialog: 1.5
menu item marks: 1.0
menu item hot keys: 0.5
non-menu item hot keys: 1.0
Links for uploading:
Solutions
Corrections