Professional Documents
Culture Documents
(MS – 19 MTS)
©Dr J.Iqbal
Assignment
Make Main Menu to select required action (Screen 1)
– Read 24-bit image and print information (Press I)
– Convert 24 bit to 8bit gray scale (Press G)
– Rotate image (Press R)
– Scale Image (Press S)
– Translate Image (Press T)
– Exit (Press X )
2 ©Dr J.Iqbal
Assignment
Screen 3 (if G is pressed)*
– Enter name of output gray Image
– [File has been successfully converted to 8 bit gray scale]
– Press Enter to go back to main menu
*It should take Image name from image reading part (screen 1)
and should not query again.
3 ©Dr J.Iqbal
Assignment
Screen 5 (if S is pressed)*
– Enter name of output Image
– User must specify scaling factor for X and Y axis.
– Use the gray scale image to scale ( Take gray scale image from previous
screen ).
– Output: Image has been successfully scaled and show information of new
image.
– Press Enter to go back to main menu
Screen 6 (if T is pressed)*
– Enter name of output Translated Image
– User must specify translation in X and Y axis.
– Use the gray scale image to translate ( Take gray scale image from previous
screen ).
– Output: Image has been successfully translated and show information of
new image.
– Press Enter to go back to main menu
*It should take Image name from image reading part (screen 1)
4
and should not query again. ©Dr J.Iqbal
Assignment
5 ©Dr J.Iqbal