Graphics Object. Group Activity! In each group, pull out one piece of blank paper and one pen or pencil Start with the piece of paper on the left side.

Slides:



Advertisements
Similar presentations
The Winter Count By Randy Farley
Advertisements

THIS IS AN EXAMPLE POWERPOINT PRESENTATION. THIS IS THE FIRST SLIDE Here is some text I have added to the slide. This is a key concept As if this Finally.
Chapter 9 Color, Sound and Graphics
C1: Sigma Notation For Sequences Sigma is a Greek letter. Capital sigma looks like this: Σ In Maths this symbol is used to mean ‘sum of’: add together.
101.  Take a look at this code and tell me what generation of programming language is used here. It is important that you can EXPLAIN how you came up.
Presidential Election 2011 The Who? Where? What? & How?
 Divide your paper horizontally at one third from the top and mark two vanishing points at each end of the line.
Grade 8 Tech. Module Unit 2 – Basic Skills.
1st grade Textured Landscape The OBJECTIVES are to: Understand how a composition is generally divided into three planes. Create a composition demonstrating.
Graphic st aidans high Auxiliary Views.
CS 280 Data Structures Professor John Peterson. Quiz 4 Recap Consider the following array: {2, 6, 7, 3, 4, 1, 5, 9}. Draw this in tree form and then show.
Constructors. You got plenty of experience using constructors in the Marching Band program. A constructor is the subroutine which creates objects from.
Inheritance, Shared. Projectiles Program Demonstrates – Inheritance – MustInherit – Shared vs. Non-shared methods A variation on the Multiball example.
Graphics Procedure (IDrawable) 1. Basic Procedure For Drawing ThingsToDraw Create Objects From Classes Add Them to PictureBox Use the Paint Event to draw.
Poetry Creative Writing. ● Want to write a poem but don’t know where to start? Simple - with a piece of paper and a pen (or pencil!) ● Instead of sitting.
Story Boards. Creating and using storyboards Storyboards are an essential tool when designing websites. They help keep developers and graphic artists.
ESL PowerPoint Demonstration The Effective Use of Presentation Software in the ESL Classroom By Daniel Craig University of Illinois ESL 401 J.
Graphics Images – PictureBox control Drawing graphics - Graphics object Multimedia controls PictureBox control Image property – select image Choose how.
How to Draw a Baby Elephant with Simple Shapes Let’s get started! Click here.
PowerPoint Hints & Tips This example file gives you some examples of good and bad practice plus problem-solving tips.
Sep-05 Slide:1 ActiveX Controls in VB ActiveX Controls in VB6.
Making a Virtual Book With PowerPoint 2007 How to make a virtual book Using PowerPoint 2007 This is not a presentation template. This is not the venue.
CST238 Week 5 Questions / Concerns? Announcements – HW#1 due (Project ideas) – Check-off Take Home lab#4 Recap New topics – Drawing Coming up: – GUI Bloopers.
MULTIMEDIA What is Multimedia? The word MULTIMEDIA is made up from two words, MULTI meaning more than one and MEDIA meaning a way of displaying or passing.
Ecology PowerPoint Directions One person from your group log on for each member of your group. Each person make 5 blank slides DO NOT PUT ANY BACKGROUND.
LA 3.14A, B, C, D,3.18E, 3.20D; 4.15D, 4.19F, 4.25B; 5.15D, 5.19F, 5.21E, 5.25B.
InvEasy (Project1) Please use speaker notes for additional information!
Positive and Negative Space. Artists talk about space in two different ways: 1.Positive Space 2.Negative Space Can you think of what the definitions for.
ESL PowerPoint Demonstration The Effective Use of Presentation Software in the ESL Classroom By Daniel Craig University of Illinois ESL 401 J.
Data a collection of facts, such as values or measurements.
Click your mouse for next slide Dreamweaver – Setting up your Page The first way to ensure that you have a consistent design is to use table to set up.
Project 3 Studio Art
Title Text... Text... Text... Text... Text... Insert Picture.
Chapter 8 Introductory Geometry Section 8.6 Viewing and Drawing Solid Figures.
ECED 4300C Dr. Tonja Root Spring, GPS ELA2W1 The student demonstrates competency in the writing process. The student a. Writes text of a length.
Presentation Title Subtitle goes here.. Top layer of bullet points –Second layer of bullet points Third layer of bullet points –Does anyone actually use.
Acrylic Landscape Fine Arts I. Landscape: a picture or photograph representing natural inland or coastal scenery.
First Word Your Task Create words and phrases that are associated with the character you have been assigned.
Plans in Perspective Learning About Architecture Lesson Two Learning Goals Learning to draw architecture with dimension using perspective Understanding.
1 Project 5: Printing Address Labels. 2 Assignment Write a Windows forms program to display and print a set of address labels. Input from a csv file.
How To Draw a Comic Strip. Things You'll Need paper pencil eraser black pen ruler.
Procedures Subs and Functions. Procedures Before OOP, subroutines were the primary high-level way to organize a program. In OOP, this role has been taken.
1 Project designed and created by M. Shajith Kumar.
Step One Draw a square on your paper. Step Two Beginning in the top left corner of the square, measure to the right about a half inch and place a dot.
CRE Programming Club - Class 5 Robert Eckstein and Robert Heard.
Functions.  Assignment #2 is now due on Wednesday, Nov 25 th  (No Quiz)  Go over the midterm  Backtrack and re-cover the question about tracing the.
 Make sure you are subscribed to announcements on Moodle.  Activity 5 will be due before the beginning of lab next week.  Check Moodle for complete.
Our desktop looks similar to what we see here normally. The pictures on the left are called icons. On the next few slides, we’ll play around with the icons.
Designing Shoes Lesson 7. Card sort the pictures of students design sheets and discuss the strengths and weaknesses of the design sheets with your partner.
Parameters Alice. Overview The need for more flexible methods Passing a parameter to a method Demos Using the Alice interface to write code for a parameter.
ICP 9/7/12 Current Events Day. Warmup Make a list of current events (things going on in the news right now) that are related to science.
[Children’s Book Title Here]
How to Write an Effective Five Paragraph Persuasive Essay Yvonne Smith IDT Click here to get started.
Basic Technical Drawing Centering a Drawing By Tim Closs.
PaintPictureBoxDemo Refers to the PaintPictureBoxDemo Visual Basic Program Included With The Lecture.
Grid Method For Drawing. Using a ruler, measure and make marks ½” apart across the bottom of the picture. You may use your pencil to draw right on the.
Orthographic Projection Drawing Abilities Teacher © J Lewis 2004.
PEBL C-1. Spotlight on Art The Art and Culture of Photography and Pottery.
Graphic Communication.  Auxiliary views are additional views that are used in orthographic projection.  Auxiliary views are normally used to view the.
Bitmap Basics in Fireworks
Watercolor Silhouettes
Please use speaker notes for additional information!
Introduction to Drafting and Design
Introduction to Drafting and Design
Extend Text Editor to Draw shapes
Grandma Moses
Starter of the day On the left side of the page write down the objective of the day & what techniques you might use to create water in a watercolor painting.
A continued lesson in Movement Art II - Senick
Creating Perspective! You must use a pencil
This is the Title of the Presentation
Presentation transcript:

Graphics Object

Group Activity! In each group, pull out one piece of blank paper and one pen or pencil Start with the piece of paper on the left side of the group. We’ll need one pencil or pen for each group. Once everybody’s ready, we’ll go to the next slide. 2

Graphics Object First : Draw a basic landscape background— some hills and maybe a lake. Second person (board/paper): Draw a few foreground objects, like trees or a lake. Third person: Add some man-made objects, like houses or cars. Fourth person: Add some people. Fifth person (if there is one): Add something else. 3

Graphics Object In VB, we call the pieces of paper “graphics objects.” They are instances of the Graphics class. Each of you would be instances of classes that know how to draw. In the Marching Band program, the BandMember class knows how to draw in detail. The Rank class knows how to draw by delegation—by telling other objects to draw. I played the role of Rank in this demonstration. 4

Graphics Object In VB, Graphics objects are generally associated with either PictureBoxes or Forms. A Graphics object (it’s called “g” in the program) can be passed around like the sheets of paper and drawn on by objects that know how to draw. In this program, g is created as soon as the form is created: 5 In assignment 3, the Graphics object is created in the Paint event.

Updating the Picture In the marching band program, every time the Timer ticks, the same things happen: – The previous drawing is erased. – The rank moves forward. – The rank gets drawn in its new location. 6

Passing the Paper The line “Rank1.Draw(g)” begins the virtual passing of the paper. Rank1.Draw(g) calls the Draw routine of the Rank class: 7 As you can see, the only thing that this Draw sub does is tell each BandMember to draw themselves, while passing them the graphics object g, one after the other, so they’ll know WHERE to draw themselves.

Finally! Someone to do the work! The Draw sub in the BandMember class is the first one that actually draws something. The two highlighted lines are the only ones that draw. They do this by calling built-in subroutines of the Graphics class: FillRectangle and DrawLines. VB.NET Graphics class has many drawing subroutines for drawing and filling shapes, text, and patterns. 8

Drawing the M The DrawLines method takes a Pen object and an array of points as its parameters It connects the points with lines in the order they are in the array A block M can be drawn in any of the four directions using the same five points: 9 NorthEastSouthWest In the Draw sub in the BandMember class, the same five points are assigned to different members of the array, as shown above.

M Code: Lengthy version The Draw sub in the BandMember class is the first one that actually draws something. The two highlighted lines are the only ones that draw. They do this by calling built-in subroutines of the Graphics class: FillRectangle and DrawLines. VB.NET Graphics class has many drawing subroutines for drawing and filling shapes, text, and patterns. 10

M Code: Simplified (sort of) Here is a slightly more compact version of drawing the M. In general, shorter code is preferred. In this case, though, it is pretty much the same either way; for a given direction, approximately the same number of lines of code run in either version. 11