SlideShare a Scribd company logo
1 of 1
Download to read offline
Program 1: Frame a plcture (25 marks) a) Write a program lo draw a picture in Phthon asing the
ImagelDraw class and then frame the picture accotding to the Gollowing criteria - Your program
"L.10Q1 initials. py" must start with a commented acadcmic integrity pledge, ID Box, and
program purpose. EACH function in your progsam mast stite its parpose in coemments. Ensase
you groap your code into logical blocks and use comments to explain each block. Coding style is
important! - When the main fusction frane petctoredenle_nate? is called, it shoeld drou pictero ()
(b) revine the drawn picture so it is 80es of the frame's width and height (c) paste the resized
pecture into the frame ceatorind it vortically and horitomtally (d) show only the final framed
picture (a) open the broken frame picture indicaled by fil= nase (b) crop the groen, yeilow, blac,
and red uctions from the brolse frame (c) resize the yellow, blec, and red sections to matelh the
groen section (d) totate the yetlow and blue stetions to match the expocted orientation: (e) paste
the foor section s into their eorrect locations to fix the frame (i) reture the fived frame picture To
work properly on both beoken frame files provided ( "lsoken _600 , prig' and 'bcoken 760 . prig')
all coordiniles used in this function should be calculated by the program using the frame's width
and height. Do not lhardoode coondinatest - The helper function dras pioture (1) mill crcale and
retum in new pecture with an equivalent width and height of at least (100, 100). For this
function. coordinates can be hardooded. The picture must have a minimasr of: 2 circles (or ovals)
2 rectangles (or sqaarei) 2 lines 2 triangles A tifle that describes your pictare Hour or more
visibly different coloors A sample picture drawn finting these eriteria has becu peovided, but the
mobject matier of your picture is of your own choosing. Please be creative and have fan with it?
* The pictures below demonstrate how 'brokes 600.0poz ' in ficced and then filled with a pioture
drawn using shapes. The progrant woeld work similarly when lested on "broken_760.phg'.
- The pictures below demonstrate how 'broken 600.png ' is foced and then filled with a picture
drawn using shapes. The program would work similarly when lested
1

More Related Content

Similar to Program 1 Frame a plcture (25 marks) a) Write a program lo draw a pi.pdf

Writeup advanced lane_lines_project
Writeup advanced lane_lines_projectWriteup advanced lane_lines_project
Writeup advanced lane_lines_projectManish Jauhari
 
AIML4 CNN lab256 1hr (111-1).pdf
AIML4 CNN lab256 1hr (111-1).pdfAIML4 CNN lab256 1hr (111-1).pdf
AIML4 CNN lab256 1hr (111-1).pdfssuserb4d806
 
Matlab intro
Matlab introMatlab intro
Matlab introfvijayami
 
Programming in matlab lesson5
Programming in matlab lesson5Programming in matlab lesson5
Programming in matlab lesson5najmah17
 
An Enhancement of Braille Character Perception Using Deep Learning and Artifi...
An Enhancement of Braille Character Perception Using Deep Learning and Artifi...An Enhancement of Braille Character Perception Using Deep Learning and Artifi...
An Enhancement of Braille Character Perception Using Deep Learning and Artifi...IRJET Journal
 
Image Classification using Deep Learning
Image Classification using Deep LearningImage Classification using Deep Learning
Image Classification using Deep LearningIRJET Journal
 
DIWE - Using Extensions and Image Manipulation
DIWE - Using Extensions and Image ManipulationDIWE - Using Extensions and Image Manipulation
DIWE - Using Extensions and Image ManipulationRasan Samarasinghe
 
Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...IRJET Journal
 
CE344L-200365-Lab5.pdf
CE344L-200365-Lab5.pdfCE344L-200365-Lab5.pdf
CE344L-200365-Lab5.pdfUmarMustafa13
 
User guide of numerical simulation gridding v2.2.0
User guide of numerical simulation gridding v2.2.0User guide of numerical simulation gridding v2.2.0
User guide of numerical simulation gridding v2.2.0Bo Sun
 
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured LightingBuild Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured LightingDouglas Lanman
 
Image processing using matlab
Image processing using matlab Image processing using matlab
Image processing using matlab SangeethaSasi1
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image ProcessingAnkur Nanda
 
project_final_seminar
project_final_seminarproject_final_seminar
project_final_seminarMUKUL BICHKAR
 
Performance Anaysis for Imaging System
Performance Anaysis for Imaging SystemPerformance Anaysis for Imaging System
Performance Anaysis for Imaging SystemVrushali Lanjewar
 
Image contro, and format functions in vb
Image contro, and format functions in vbImage contro, and format functions in vb
Image contro, and format functions in vbAmandeep Kaur
 
CG_Unit1_SShah.pptx
CG_Unit1_SShah.pptxCG_Unit1_SShah.pptx
CG_Unit1_SShah.pptxShweta Shah
 

Similar to Program 1 Frame a plcture (25 marks) a) Write a program lo draw a pi.pdf (20)

Writeup advanced lane_lines_project
Writeup advanced lane_lines_projectWriteup advanced lane_lines_project
Writeup advanced lane_lines_project
 
AIML4 CNN lab256 1hr (111-1).pdf
AIML4 CNN lab256 1hr (111-1).pdfAIML4 CNN lab256 1hr (111-1).pdf
AIML4 CNN lab256 1hr (111-1).pdf
 
Matlab intro
Matlab introMatlab intro
Matlab intro
 
Programming in matlab lesson5
Programming in matlab lesson5Programming in matlab lesson5
Programming in matlab lesson5
 
An Enhancement of Braille Character Perception Using Deep Learning and Artifi...
An Enhancement of Braille Character Perception Using Deep Learning and Artifi...An Enhancement of Braille Character Perception Using Deep Learning and Artifi...
An Enhancement of Braille Character Perception Using Deep Learning and Artifi...
 
Image Classification using Deep Learning
Image Classification using Deep LearningImage Classification using Deep Learning
Image Classification using Deep Learning
 
Project 5
Project 5Project 5
Project 5
 
DIWE - Using Extensions and Image Manipulation
DIWE - Using Extensions and Image ManipulationDIWE - Using Extensions and Image Manipulation
DIWE - Using Extensions and Image Manipulation
 
Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
M14 overview
M14 overviewM14 overview
M14 overview
 
CE344L-200365-Lab5.pdf
CE344L-200365-Lab5.pdfCE344L-200365-Lab5.pdf
CE344L-200365-Lab5.pdf
 
User guide of numerical simulation gridding v2.2.0
User guide of numerical simulation gridding v2.2.0User guide of numerical simulation gridding v2.2.0
User guide of numerical simulation gridding v2.2.0
 
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured LightingBuild Your Own 3D Scanner: 3D Scanning with Structured Lighting
Build Your Own 3D Scanner: 3D Scanning with Structured Lighting
 
Image processing using matlab
Image processing using matlab Image processing using matlab
Image processing using matlab
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
project_final_seminar
project_final_seminarproject_final_seminar
project_final_seminar
 
Performance Anaysis for Imaging System
Performance Anaysis for Imaging SystemPerformance Anaysis for Imaging System
Performance Anaysis for Imaging System
 
Image contro, and format functions in vb
Image contro, and format functions in vbImage contro, and format functions in vb
Image contro, and format functions in vb
 
CG_Unit1_SShah.pptx
CG_Unit1_SShah.pptxCG_Unit1_SShah.pptx
CG_Unit1_SShah.pptx
 

More from aludin007

Problem 4 Suppose that the government sets an emission fee of $8000.pdf
 Problem 4 Suppose that the government sets an emission fee of $8000.pdf Problem 4 Suppose that the government sets an emission fee of $8000.pdf
Problem 4 Suppose that the government sets an emission fee of $8000.pdfaludin007
 
Problem 5 Prove or disprove the statement n!2n for all integers n1..pdf
 Problem 5 Prove or disprove the statement n!2n for all integers n1..pdf Problem 5 Prove or disprove the statement n!2n for all integers n1..pdf
Problem 5 Prove or disprove the statement n!2n for all integers n1..pdfaludin007
 
Problem 5 A $1,000 bond with a 4 years life is paying a semiannual co.pdf
 Problem 5 A $1,000 bond with a 4 years life is paying a semiannual co.pdf Problem 5 A $1,000 bond with a 4 years life is paying a semiannual co.pdf
Problem 5 A $1,000 bond with a 4 years life is paying a semiannual co.pdfaludin007
 
Problem 5 (16 points) Jack and Jill Smith have just retired and want.pdf
 Problem 5 (16 points) Jack and Jill Smith have just retired and want.pdf Problem 5 (16 points) Jack and Jill Smith have just retired and want.pdf
Problem 5 (16 points) Jack and Jill Smith have just retired and want.pdfaludin007
 
Problem 4. Radix Sort Q4. Select all properties of the radix sort. ru.pdf
 Problem 4. Radix Sort Q4. Select all properties of the radix sort. ru.pdf Problem 4. Radix Sort Q4. Select all properties of the radix sort. ru.pdf
Problem 4. Radix Sort Q4. Select all properties of the radix sort. ru.pdfaludin007
 
Problem 4. Bubble Sort Q2. Select all properties of the bubble sort. .pdf
 Problem 4. Bubble Sort Q2. Select all properties of the bubble sort. .pdf Problem 4. Bubble Sort Q2. Select all properties of the bubble sort. .pdf
Problem 4. Bubble Sort Q2. Select all properties of the bubble sort. .pdfaludin007
 
Problem 4. (20 marks) Let a message M of 128 bits be encrypted with 1.pdf
 Problem 4. (20 marks) Let a message M of 128 bits be encrypted with 1.pdf Problem 4. (20 marks) Let a message M of 128 bits be encrypted with 1.pdf
Problem 4. (20 marks) Let a message M of 128 bits be encrypted with 1.pdfaludin007
 
Problem 3. (Central Limit Theorem Step 2) Let X be a mean 0 variance.pdf
 Problem 3. (Central Limit Theorem Step 2) Let X be a mean 0 variance.pdf Problem 3. (Central Limit Theorem Step 2) Let X be a mean 0 variance.pdf
Problem 3. (Central Limit Theorem Step 2) Let X be a mean 0 variance.pdfaludin007
 
Problem 3 a) A portfolio consisting of Stocks 1 and 2 has an expected.pdf
 Problem 3 a) A portfolio consisting of Stocks 1 and 2 has an expected.pdf Problem 3 a) A portfolio consisting of Stocks 1 and 2 has an expected.pdf
Problem 3 a) A portfolio consisting of Stocks 1 and 2 has an expected.pdfaludin007
 
Problem 2. The random variables X and Y have joint probability densil.pdf
 Problem 2. The random variables X and Y have joint probability densil.pdf Problem 2. The random variables X and Y have joint probability densil.pdf
Problem 2. The random variables X and Y have joint probability densil.pdfaludin007
 
Problem 3. Using the Probability mass function found below, construct.pdf
 Problem 3. Using the Probability mass function found below, construct.pdf Problem 3. Using the Probability mass function found below, construct.pdf
Problem 3. Using the Probability mass function found below, construct.pdfaludin007
 
Problem 2. Prove that the language L2={aib2ii0} is not regular langua.pdf
 Problem 2. Prove that the language L2={aib2ii0} is not regular langua.pdf Problem 2. Prove that the language L2={aib2ii0} is not regular langua.pdf
Problem 2. Prove that the language L2={aib2ii0} is not regular langua.pdfaludin007
 
Problem 4 Let X be a uniform (0,1) random variable, and let Y=eX. a. .pdf
 Problem 4 Let X be a uniform (0,1) random variable, and let Y=eX. a. .pdf Problem 4 Let X be a uniform (0,1) random variable, and let Y=eX. a. .pdf
Problem 4 Let X be a uniform (0,1) random variable, and let Y=eX. a. .pdfaludin007
 
Problem 3. Graph Q2. Match the graphs with their descriptions. DAG [C.pdf
 Problem 3. Graph Q2. Match the graphs with their descriptions. DAG [C.pdf Problem 3. Graph Q2. Match the graphs with their descriptions. DAG [C.pdf
Problem 3. Graph Q2. Match the graphs with their descriptions. DAG [C.pdfaludin007
 
Problem 3. Tree Q1. Choose yes or no to the following statements abou.pdf
 Problem 3. Tree Q1. Choose yes or no to the following statements abou.pdf Problem 3. Tree Q1. Choose yes or no to the following statements abou.pdf
Problem 3. Tree Q1. Choose yes or no to the following statements abou.pdfaludin007
 
Problem 2. Solve the following linear problem using the Dual Simplex .pdf
 Problem 2. Solve the following linear problem using the Dual Simplex .pdf Problem 2. Solve the following linear problem using the Dual Simplex .pdf
Problem 2. Solve the following linear problem using the Dual Simplex .pdfaludin007
 
Problem 4 (10 pts) Write a complete C program and create a user defi.pdf
 Problem 4 (10 pts) Write a complete C program and create a user defi.pdf Problem 4 (10 pts) Write a complete C program and create a user defi.pdf
Problem 4 (10 pts) Write a complete C program and create a user defi.pdfaludin007
 
Problem 4 (p. 219#12 ). Let W1 and W2 be independent geometric random.pdf
 Problem 4 (p. 219#12 ). Let W1 and W2 be independent geometric random.pdf Problem 4 (p. 219#12 ). Let W1 and W2 be independent geometric random.pdf
Problem 4 (p. 219#12 ). Let W1 and W2 be independent geometric random.pdfaludin007
 
Programming II hiding, and .pdf
 Programming II hiding, and .pdf Programming II hiding, and .pdf
Programming II hiding, and .pdfaludin007
 
Procedure #2 The experiment has been set up for you. You will observ.pdf
 Procedure #2 The experiment has been set up for you. You will observ.pdf Procedure #2 The experiment has been set up for you. You will observ.pdf
Procedure #2 The experiment has been set up for you. You will observ.pdfaludin007
 

More from aludin007 (20)

Problem 4 Suppose that the government sets an emission fee of $8000.pdf
 Problem 4 Suppose that the government sets an emission fee of $8000.pdf Problem 4 Suppose that the government sets an emission fee of $8000.pdf
Problem 4 Suppose that the government sets an emission fee of $8000.pdf
 
Problem 5 Prove or disprove the statement n!2n for all integers n1..pdf
 Problem 5 Prove or disprove the statement n!2n for all integers n1..pdf Problem 5 Prove or disprove the statement n!2n for all integers n1..pdf
Problem 5 Prove or disprove the statement n!2n for all integers n1..pdf
 
Problem 5 A $1,000 bond with a 4 years life is paying a semiannual co.pdf
 Problem 5 A $1,000 bond with a 4 years life is paying a semiannual co.pdf Problem 5 A $1,000 bond with a 4 years life is paying a semiannual co.pdf
Problem 5 A $1,000 bond with a 4 years life is paying a semiannual co.pdf
 
Problem 5 (16 points) Jack and Jill Smith have just retired and want.pdf
 Problem 5 (16 points) Jack and Jill Smith have just retired and want.pdf Problem 5 (16 points) Jack and Jill Smith have just retired and want.pdf
Problem 5 (16 points) Jack and Jill Smith have just retired and want.pdf
 
Problem 4. Radix Sort Q4. Select all properties of the radix sort. ru.pdf
 Problem 4. Radix Sort Q4. Select all properties of the radix sort. ru.pdf Problem 4. Radix Sort Q4. Select all properties of the radix sort. ru.pdf
Problem 4. Radix Sort Q4. Select all properties of the radix sort. ru.pdf
 
Problem 4. Bubble Sort Q2. Select all properties of the bubble sort. .pdf
 Problem 4. Bubble Sort Q2. Select all properties of the bubble sort. .pdf Problem 4. Bubble Sort Q2. Select all properties of the bubble sort. .pdf
Problem 4. Bubble Sort Q2. Select all properties of the bubble sort. .pdf
 
Problem 4. (20 marks) Let a message M of 128 bits be encrypted with 1.pdf
 Problem 4. (20 marks) Let a message M of 128 bits be encrypted with 1.pdf Problem 4. (20 marks) Let a message M of 128 bits be encrypted with 1.pdf
Problem 4. (20 marks) Let a message M of 128 bits be encrypted with 1.pdf
 
Problem 3. (Central Limit Theorem Step 2) Let X be a mean 0 variance.pdf
 Problem 3. (Central Limit Theorem Step 2) Let X be a mean 0 variance.pdf Problem 3. (Central Limit Theorem Step 2) Let X be a mean 0 variance.pdf
Problem 3. (Central Limit Theorem Step 2) Let X be a mean 0 variance.pdf
 
Problem 3 a) A portfolio consisting of Stocks 1 and 2 has an expected.pdf
 Problem 3 a) A portfolio consisting of Stocks 1 and 2 has an expected.pdf Problem 3 a) A portfolio consisting of Stocks 1 and 2 has an expected.pdf
Problem 3 a) A portfolio consisting of Stocks 1 and 2 has an expected.pdf
 
Problem 2. The random variables X and Y have joint probability densil.pdf
 Problem 2. The random variables X and Y have joint probability densil.pdf Problem 2. The random variables X and Y have joint probability densil.pdf
Problem 2. The random variables X and Y have joint probability densil.pdf
 
Problem 3. Using the Probability mass function found below, construct.pdf
 Problem 3. Using the Probability mass function found below, construct.pdf Problem 3. Using the Probability mass function found below, construct.pdf
Problem 3. Using the Probability mass function found below, construct.pdf
 
Problem 2. Prove that the language L2={aib2ii0} is not regular langua.pdf
 Problem 2. Prove that the language L2={aib2ii0} is not regular langua.pdf Problem 2. Prove that the language L2={aib2ii0} is not regular langua.pdf
Problem 2. Prove that the language L2={aib2ii0} is not regular langua.pdf
 
Problem 4 Let X be a uniform (0,1) random variable, and let Y=eX. a. .pdf
 Problem 4 Let X be a uniform (0,1) random variable, and let Y=eX. a. .pdf Problem 4 Let X be a uniform (0,1) random variable, and let Y=eX. a. .pdf
Problem 4 Let X be a uniform (0,1) random variable, and let Y=eX. a. .pdf
 
Problem 3. Graph Q2. Match the graphs with their descriptions. DAG [C.pdf
 Problem 3. Graph Q2. Match the graphs with their descriptions. DAG [C.pdf Problem 3. Graph Q2. Match the graphs with their descriptions. DAG [C.pdf
Problem 3. Graph Q2. Match the graphs with their descriptions. DAG [C.pdf
 
Problem 3. Tree Q1. Choose yes or no to the following statements abou.pdf
 Problem 3. Tree Q1. Choose yes or no to the following statements abou.pdf Problem 3. Tree Q1. Choose yes or no to the following statements abou.pdf
Problem 3. Tree Q1. Choose yes or no to the following statements abou.pdf
 
Problem 2. Solve the following linear problem using the Dual Simplex .pdf
 Problem 2. Solve the following linear problem using the Dual Simplex .pdf Problem 2. Solve the following linear problem using the Dual Simplex .pdf
Problem 2. Solve the following linear problem using the Dual Simplex .pdf
 
Problem 4 (10 pts) Write a complete C program and create a user defi.pdf
 Problem 4 (10 pts) Write a complete C program and create a user defi.pdf Problem 4 (10 pts) Write a complete C program and create a user defi.pdf
Problem 4 (10 pts) Write a complete C program and create a user defi.pdf
 
Problem 4 (p. 219#12 ). Let W1 and W2 be independent geometric random.pdf
 Problem 4 (p. 219#12 ). Let W1 and W2 be independent geometric random.pdf Problem 4 (p. 219#12 ). Let W1 and W2 be independent geometric random.pdf
Problem 4 (p. 219#12 ). Let W1 and W2 be independent geometric random.pdf
 
Programming II hiding, and .pdf
 Programming II hiding, and .pdf Programming II hiding, and .pdf
Programming II hiding, and .pdf
 
Procedure #2 The experiment has been set up for you. You will observ.pdf
 Procedure #2 The experiment has been set up for you. You will observ.pdf Procedure #2 The experiment has been set up for you. You will observ.pdf
Procedure #2 The experiment has been set up for you. You will observ.pdf
 

Recently uploaded

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 

Recently uploaded (20)

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

Program 1 Frame a plcture (25 marks) a) Write a program lo draw a pi.pdf

  • 1. Program 1: Frame a plcture (25 marks) a) Write a program lo draw a picture in Phthon asing the ImagelDraw class and then frame the picture accotding to the Gollowing criteria - Your program "L.10Q1 initials. py" must start with a commented acadcmic integrity pledge, ID Box, and program purpose. EACH function in your progsam mast stite its parpose in coemments. Ensase you groap your code into logical blocks and use comments to explain each block. Coding style is important! - When the main fusction frane petctoredenle_nate? is called, it shoeld drou pictero () (b) revine the drawn picture so it is 80es of the frame's width and height (c) paste the resized pecture into the frame ceatorind it vortically and horitomtally (d) show only the final framed picture (a) open the broken frame picture indicaled by fil= nase (b) crop the groen, yeilow, blac, and red uctions from the brolse frame (c) resize the yellow, blec, and red sections to matelh the groen section (d) totate the yetlow and blue stetions to match the expocted orientation: (e) paste the foor section s into their eorrect locations to fix the frame (i) reture the fived frame picture To work properly on both beoken frame files provided ( "lsoken _600 , prig' and 'bcoken 760 . prig') all coordiniles used in this function should be calculated by the program using the frame's width and height. Do not lhardoode coondinatest - The helper function dras pioture (1) mill crcale and retum in new pecture with an equivalent width and height of at least (100, 100). For this function. coordinates can be hardooded. The picture must have a minimasr of: 2 circles (or ovals) 2 rectangles (or sqaarei) 2 lines 2 triangles A tifle that describes your pictare Hour or more visibly different coloors A sample picture drawn finting these eriteria has becu peovided, but the mobject matier of your picture is of your own choosing. Please be creative and have fan with it? * The pictures below demonstrate how 'brokes 600.0poz ' in ficced and then filled with a pioture drawn using shapes. The progrant woeld work similarly when lested on "broken_760.phg'. - The pictures below demonstrate how 'broken 600.png ' is foced and then filled with a picture drawn using shapes. The program would work similarly when lested 1