logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Make a frame (black, 20 pixels thick) for the pictorial area of the calendar

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

PART 1 – A simple calendar (60 marks)

Source elements (images) specifications (on the module Canvas site)

- Black image (calendar basis) ‘basis.bmp’: 720×480, grayscale

- Numbers (black font with white background) ‘0.bmp’ – ‘9.bmp’: 40×20, grayscale

- Weekday names (black font with white background) ‘monday.bmp’ – ‘sunday.bmp’: 20×60, grayscale

- ‘sept2021.bmp’ (black font with white background): 50×150, grayscale

- Grayscale pictures ‘monarch_bw.bmp’, ‘parrots_bw.bmp’, ‘lighthouse_bw.bmp’: 512×768, grayscale

- Colour pictures ‘monarch.bmp’, ‘parrots.bmp’, ‘lighthouse.bmp’: 512×768, colour

 

‘Floor plan’ – 10 marks

- White line drawing on the black image ‘basis.bmp’: 6 vertical lines and 6 horizontal lines (all in 10-pixel width)

- Cell1: 340×480, 1 cell in total

- Cell2: 20×60, 7 cells in total

- Cell3: 60×60, 35 cells in total

Insert ‘weekday names’ – 10 marks

- The starting point is the top-left pixel of each cell of ‘cell2’

- Insert the source image ‘sunday.bmp’ into the 1st cell of ‘cell2’

- Insert the source image ‘monday.bmp’ into the 2nd cell of ‘cell2’

- Insert the source image ‘tuesday.bmp’ into the 3rd cell of ‘cell2’

- Insert the source image ‘wednesday.bmp’ into the 4th cell of ‘cell2’

- Insert the source image ‘thursday.bmp’ into the 5th cell of ‘cell2’

- Insert the source image ‘friday.bmp’ into the 6th cell of ‘cell2’

- Insert the source image ‘saturday.bmp’ into the 7th cell of ‘cell2’

 

 

Insert ‘numbers’ – 20 marks

- The starting point is the top-left pixel of each cell of ‘cell3’

- Insert the source image ‘1.bmp’ into the 4th cell of the first row of ‘cell3’

- … (insert the images of numbers in the same way from the left to right, from the top to bottom in the area of ‘cell3’)

- Insert the source image ‘9.bmp’ into the 5th cell of the second row of ‘cell3’

- For the rest of the cells with 2 digits, e.g. ‘10’, first insert the source image ‘1.bmp’, then insert the source image ‘0.bmp’ next to it

 

 

Insert a ‘picture’ – 10 marks

- The starting point is the top-left pixel of ‘cell1’

- Choose one grayscale picture from the three given source images ‘monarch_bw.bmp’, ‘parrots_bw.bmp’, ‘lighthouse_bw.bmp’

- Crop a smaller image of 340×480 pixels (the same size of ‘cell1’) out of your chosen grayscale picture

- Insert the cropped image into ‘cell1’

Insert ‘Sept 2021’ – 10 marks

- Insert the source image ‘sept2021.bmp’ into the pictorial area of the calendar

- Define your own starting point, but make sure the whole image of ‘sept2021.bmp’ is inside the pictorial area of the calendar

- You can put ‘Sept 2021’ anywhere you want in the pictorial area of the calendar

PART 2 – Decorate your calendar (40%)

 

D1: Make a frame – 10%

- Make a frame (black, 20 pixels thick) for the pictorial area of the calendar

- Still, you can put ‘September 2020’ anywhere you want in the pictorial area of the calendar (but should be inside the frame)

 

 

D2: Adding cropped images – 15%

- Choose another grayscale picture from the three given source images ‘monarch_bw.bmp’, ‘parrots_bw.bmp’, ‘lighthouse_bw.bmp’

- Crop a smaller image of 100×100 pixels out of your chosen grayscale picture

- Apply a threshold of gray level 100 to the cropped image (i.e. set the pixel values equal to or more than 100 to 255; and set the pixel values less than 100 to 0)

- Combine the original cropped image with its version after thresholding so that they are side-by-side with no gap between them

- Insert the combined image into anywhere you want in the pictorial area of the calendar (but should be inside the frame)

 

 

D3: Make a colourful calendar – 15%

The colourful calendar is made up from the following four elements:

o Make the white area of the numbers and weekdays to a colour (3%)

o Insert a colour picture to the pictorial area of the calendar (4%)

o Insert ‘Sept 2021' with its white background changed to a colour (4%)

o 'Twin patches' - one colour and one black & white (4%)

 

 

 

 

- Hints and Tips:

(1) You can start with the ‘midway’ grayscale image you have created. Make an RGB image based on it. Now, you should be able to easily change the white areas into green.

(2) Instead of choosing a grayscale picture, you should choose a colour picture from the three given source images ‘monarch.bmp’, ‘parrots.bmp’, ‘lighthouse.bmp’. Now, you should insert the cropped portion, channel by channel (R, G, B), into the image above (in the same manner when you deal with the ‘grayscale’ images, but you just have to repeat it three times for ‘colour’ images).

(3) There are different ways to make the white background of ‘Sept 2021’ into red! One of the options is to make the source grayscale image ‘sept2021.bmp’ into colour format, change the white areas into red, and insert the colour version of ‘Sept 2021’, again channel by channel, into the calendar.

(4) There are different ways to insert the ‘twin patches’. For the left patch, it is straightforward to crop a portion out of one of the three given source colour images ‘monarch.bmp’, ‘parrots.bmp’, ‘lighthouse.bmp’, and to insert the cropped portion, channel by channel, in the calendar. For the right patch, the tip is to reuse the grayscale version you have created in D2, and insert the same patch to each of the RGB channels of the calendar (so, you keep it black-and-white in a colourful calendar).

 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

855 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

757 Answers

Hire Me
expert
Husnain SaeedComputer science

649 Answers

Hire Me
expert
Atharva PatilComputer science

965 Answers

Hire Me
June
January
February
March
April
May
June
July
August
September
October
November
December
2025
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
00:00
00:30
01:00
01:30
02:00
02:30
03:00
03:30
04:00
04:30
05:00
05:30
06:00
06:30
07:00
07:30
08:00
08:30
09:00
09:30
10:00
10:30
11:00
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
19:30
20:00
20:30
21:00
21:30
22:00
22:30
23:00
23:30