Drawing a Stick Figure!.

Slides:



Advertisements
Similar presentations
MS-Word XP Lesson 4.
Advertisements

Working with Tables for Page Design – Lesson 41 Working with Tables for Page Design Lesson 4.
Laboratory Study II October, Java Programming Assignment  Write a program to calculate and output the distance traveled by a car on a tank of.
Graphics You draw on a Graphics object The Graphics object cannot directly be created by your code, instead one is generated when the method paintComponent.
Working with images and scenes CS 5010 Program Design Paradigms “Bootcamp” Lesson 2.5 TexPoint fonts used in EMF. Read the TexPoint manual before you delete.
Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
Tutorial 4: Creating page layout with css
CSS: Class 1 Background Images, Controlling Position of Background Images, Add Padding to Page Elements, Add Borders to Elements on a Page.
1 Lesson Style Sheets Box Model Content (text,image,table) Margin Padding Border Box.
Tutorial 4: Designing a Web Page with Tables
1 Graphics -- Introduction zThe use of graphics is common among modern software systems  Java has strong API support for graphics in the java.awt (abstract.
Introducing More Controls Text boxCheck box Option button Command button frame image.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
Graphics Output Primitives Pixel Addressing and Fill Area Dr. M. Al-Mulhem Feb. 1, 2008.
VB Controls and Events Week 7: Picture Box, Image Box, Option, Check box, Mouse over, Frames, Shapes.
Text, Masks, and Live Effects – Lesson 41 Text, Masks, and Live Effects Lesson 4.
TEKS 8.6 (A,B) & 8.7 (A,D) This slide is meant to be a title page for the whole presentation and not an actual slide. 8.6 (A) Generate similar shapes using.
Graphics and Multimedia. Introduction The language contains many sophisticated drawing capabilities as part of namespace System.Drawing and the other.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
INTRODUCTION TO HTML5 Styling with CSS3. Round Border Corners  You can modify any element that supports the border property and render rounded borders.
Using Microsoft Office Picture Manager How Cropping Can Make Your Presentations Look More Professional.
Java Software Solutions Lewis and Loftus Chapter 7 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Graphics -- Introduction The.
Chapter 14. Copyright 2003, Paradigm Publishing Inc. CHAPTER 14 BACKNEXTEND 14-2 LINKS TO OBJECTIVES Add Borders with Borders Button Add Borders with.
HTML 5 Tutorial Chapter 5 Canvas. Canvas The tag is used to display graphics. The Canvas is a rectangular area we control each and every pixel of it.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Graphics Concepts CS 2302, Fall /3/20142 Drawing Paths.
Image Representation. Objectives  Bitmaps: resolution, colour depth and simple bitmap file calculations.  Vector graphics: drawing list – objects and.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved CheckWriter Application Introducing Graphics and Printing.
Hour of Code 7 th Grade: Zombie Artist. Helpful Hints for Teachers Be sure students read each direction or helpful hint in between each level. When students.
Lecture 15: Intro to Graphics Yoni Fridman 7/25/01 7/25/01.
RAKING MOULDS by Greg Cheetham. Start with an original mould with square corners as it will sit in the square corner of the side wall and raked ceiling.
Loops & Graphics IP 10 Mr. Mellesmoen Recall Earlier we wrote a program listing numbers from 1 – 24 i=1 start: TextWindow.WriteLine(i) i=i+1 If.
Exploring the Macromedia Flash Workspace – Lesson 2 1 Exploring the Macromedia Flash Workspace Lesson 2.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
More Form Tools Combo Box (displays a list) Check Box (yes/no) Frame (groups option buttons) Option Button (exclusive choice) Ref Edit (user selects cells)
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
Lesson 6 Formatting Cells and Ranges. Objectives:  Insert and delete cells  Manually format cell contents  Copy cell formatting with the Format Painter.
COMPUTER PROGRAMMING I SUMMER 2011 Objective 8.01 Understand coordinate systems. (3%)
HTML Frames. Advantages to Using Frames n flexibility in design n information in different Web pages n remove redundancy. n site easier to manage. n update.
End User Computing Applied CSS: Building our course homepage Sujana Jyothi Department of Computer Science
Visual Basic.NET BASICS Lesson 9 Nested If Statements and Radio Buttons.
HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.
Desktop Publishing Lesson 4 — Working with Objects.
Lesson 13 Tables. Overview Create a table. Key and edit text in tables. Select cells, rows, and columns. Edit table structures. Format tables and cell.
PROCESSING A computer screen is a grid of small light elements called pixels.
Microsoft® PowerPoint  From the Insert tab, in the Tables group, click the Insert Table button.  Drag your pointer down and across to define.
Drawing Alcoves using One Point Perspective
Adapted from slides by Marty Stepp and Stuart Reges
Inserting and Working with Images
Fill Area Algorithms Jan
Graphics and Multimedia
Lesson One: The Beginning Chapter 1: Pixels Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from
Word Lesson 6 Working with Graphics
Basic Graphics Drawing Shapes 1.
The Canvas.
Graphics -- Introduction
Chapter Lessons Use the Macromedia Flash drawing tools
BLACK OUT START GAME Darkened picture background with full-color circle (Intermediate) Tip: For best results with the picture overlay on this slide, use.
Darkened picture background with full-color circle (Intermediate)
Subtitles in normal sentence case (not all caps)
Here are four triangles. What do all of these triangles have in common
More CSS Page layout Boriana Koleva Room: C54
Area of Rectangles and Parallelograms
1 1/8” 1 1/8” 1 1/8” 3/8 boarder 1 1/8” 1 1/8” 1 1/8”
Picture recolored and blurred with film grain effect (Advanced)
Trees and Colored Edge Detection
Multiplying Fractions
CSS Boxes CS 1150 Fall 2016.
True Shape Questions.
Presentation transcript:

Drawing a Stick Figure!

Create the follow form using code, draw a stick figure similar to the one shown here.

Option Explicit Dim strcolor As String ____________________________ ScaleMode = vbPixels Line (80, 40)-(120, 80), strcolor, B Line (100, 80)-(100, 150), strcolor Line (60, 105)-(140, 105), strcolor Line (60, 190)-(100, 150), strcolor Line (140, 190)-(100, 150), strcolor

optBlack.Value = True ______________________________ strcolor = vbBlack strcolor = vbBlue strcolor = vbGreen strcolor = vbRed

Summary There are two ways to create lines on a forms. You can create a line control, or you can use the line method to draw a line on a form using Visual Basic code. A Shape control is similar to a Line control except that the Shape control contains several additional properties, which allows you to change the shape and shading of the control. The BorderColor and BorderWidth properties specify the color and width of ordinary lines and the color and width of border lines for a shape. The FillColor and FillStyle properties specify how a shape will be filled. The properties of both Line controls and Shape controls cannot manipulate it. Distance and position on a form is measured using coordinates. The top left corner of a form has the coordinates (0,0).

All coordinates are positive All coordinates are positive. As you move toward the bottom of a form, the X-coordinate value increases. As you move toward the right of the form, the Y- coordinate value increases. You specify where the Line method should draw a line by using specific coordinates. You can also specify the color of the line in the parameters. The ScaleMethod property allows you to adjust the coordinate system of a form to be measured in twips, pixels, or points. The Line method can also create boxes, either filled or unfilled.