 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 30 - Dynamic HTML: Structured Graphics ActiveX Control Outline 30.1Introduction 30.2Shape Primitives.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Chapter 13 Graphics.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Introduction to XHTML Programming the World Wide Web Fourth edition.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
Tutorial 3 – Creating a Multiple-Page Report
XP New Perspectives on Microsoft Office Word 2003 Tutorial 7 1 Microsoft Office Word 2003 Tutorial 7 – Collaborating With Others and Creating Web Pages.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
Word Lesson 6 Working with Graphics
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
© 2010 Delmar, Cengage Learning Chapter 9 Positioning Objects with AP Div Tags.
© 2010 Delmar, Cengage Learning Chapter 5 Positioning Objects with CSS and Tables.
1 Tables and Lists. 2 Are Tables still needed? Tables were once used to help structure and style our pages CSS now replaces most of the old uses for tables.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Creating Tables in a Web Site
Adobe InDesign CS5 - Illustrated Unit G: Working with Color and Tables.
2 |SharePoint Saturday New York City
Green Eggs and Ham.
VOORBLAD.
© Paradigm Publishing, Inc Excel 2013 Level 1 Unit 2Enhancing the Display of Worksheets Chapter 8 Adding Visual Interest to Workbooks.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 6 Ethernet Fundamentals.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Skills for Success with Microsoft® Office 2010
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT WORD Lesson 8 – Increasing Efficiency Using Word.
Dr. Alexandra I. Cristea CSS Dr. Alexandra I. Cristea Source:
25 seconds left…...
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
How to annotate simple drawings for use in constructing an object
Januar MDMDFSSMDMDFSSS
Analyzing Genes and Genomes
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
Chapter 13 Web Page Design Studio
1 Chapter 13 Nuclear Magnetic Resonance Spectroscopy.
Energy Generation in Mitochondria and Chlorplasts
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 31 - Dynamic HTML: Path, Sequencer and Sprite ActiveX Controls Outline 31.1Introduction 31.2DirectAnimation.
CS324e - Elements of Graphics and Visualization Java2D Graphics.
DHTML: Structured Graphics ActiveX Control
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 19 – Dynamic HTML: Structured Graphics ActiveX Control Outline 19.1Introduction 19.2Shape.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 17 - Dynamic HTML: Structured Graphics ActiveX Control Outline 17.1 Introduction 17.2 Shape Primitives.
Chapter 17 - Dynamic HTML: Structured Graphics ActiveX Control
Presentation transcript:

 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 30 - Dynamic HTML: Structured Graphics ActiveX Control Outline 30.1Introduction 30.2Shape Primitives 30.3Moving Shapes with Translate 30.4Rotation 30.5Mouse Events and External Source Files 30.6Scaling 30.7Web Resources

 2004 Prentice Hall, Inc. All rights reserved. 2 Objectives In this chapter, you will learn: –To be able to use the Structured Graphics Control to create various shapes. –To understand the Structured Graphics Control methods for modifying lines and borders. –To understand the Structured Graphics Control methods for modifying colors and fill styles. –To be able to enable event capturing for the Structured Graphics Control. –To be able to import external lists of methods into the Structured Graphics Control. –To be able to scale, rotate and translate shapes in the Structured Graphics Control.

 2004 Prentice Hall, Inc. All rights reserved Introduction Structured Graphics ActiveX Control –object element –Visual presentation via DirectAnimation Subset of DirectX software

 2004 Prentice Hall, Inc. All rights reserved Shape Primitives Commands passed through param tags –Assign each param a line number "Line001" –SetLineColor RGB triplet Sets color of lines and borders of shapes –SetLineStyle Line style and width –Solid, invisible or dashed –SetFillColor RGB triplet Foreground color to fill shapes

 2004 Prentice Hall, Inc. All rights reserved Shape Primitives Commands passed through param tags, cont. –SetFillStyle

 2004 Prentice Hall, Inc. All rights reserved Shape Primitives Commands passed through param tags, cont. –Oval x- and y-coordinates of bounding box Coordinates measured from center of control Height, width, rotation –Arc x- and y-coordinates of bounding box Height, width of box it encloses Starting angle (degrees) Size of arc Rotation –Pie Similar to Arc, but filled

 2004 Prentice Hall, Inc. All rights reserved Shape Primitives Commands passed through param tags, cont. –Polygon Number of vertices x- and y-coordinates of each vertex –Rect x- and y-coordinates of bounding box Height, width, rotation –RoundRect x- and y-coordinates of bounding box Height, width of box Height, width of arc Rotation

 2004 Prentice Hall, Inc. All rights reserved Shape Primitives Commands passed through param tags, cont. –SetFont Font Height Boldness Italic, underline, strikethrough –Text Text x- and y-coordinates Rotation –PolyLine Number of vertices x- and y-coordinates of each vertex

 2004 Prentice Hall, Inc. All rights reserved. Outline 9 shapes.html (1 of 3) Setting the line color to 0, 0, 0 (black) Creating a thin, solid lineInserting the Structured Graphics Control Setting the fill color to cyan

 2004 Prentice Hall, Inc. All rights reserved. Outline 10 shapes.html (2 of 3) Setting the fill style to a solid color Drawing an oval with the previously specified settings Drawing an arc with the same settings Drawing a pie (filled arc) Drawing a polygon with 5 vertices Drawing a filled rectangleDrawing a filled rectangle with rounded corners

 2004 Prentice Hall, Inc. All rights reserved. Outline 11 shapes.html (3 of 3) Setting the font to Arial, bold, size 65 Printing the text “Shapes”Setting the line style to dashed Drawing a line with 5 vertices

 2004 Prentice Hall, Inc. All rights reserved Shape Primitives Fig Structured Graphics ActiveX Control creates shapes.

 2004 Prentice Hall, Inc. All rights reserved Moving Shapes With Translate Translate –Move and transform shapes New param s –SetTextureFill x- and y-coordinates inside shape Location of texture file Stretch or repeat –Translate Relative distance to move shape along x-, y- and z-axes

 2004 Prentice Hall, Inc. All rights reserved. Outline 14 bounce.html (1 of 3) Variables to track ball’s position and movement

 2004 Prentice Hall, Inc. All rights reserved. Outline 15 bounce.html (2 of 3) Move the ball 5 units in the proper direction Change direction when the ball hits a wall

 2004 Prentice Hall, Inc. All rights reserved. Outline 16 bounce.html (3 of 3) Fill the ball with texture from file ball.gif

 2004 Prentice Hall, Inc. All rights reserved Moving Shapes With Translate Fig Methods SetTextureFill and Translate.

 2004 Prentice Hall, Inc. All rights reserved Rotation Rotate –Rotate shapes in three-dimensional space New param s –Rotate How far to rotate around x-, y- and z-axes –SetFillColor Optional second parameter is background color Use fill styles 9, 11, 13 for gradients

 2004 Prentice Hall, Inc. All rights reserved. Outline 19 gradient.html (1 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline 20 gradient.html (2 of 3) Vary the speed of rotationRotate the piesDeclaring the pies

 2004 Prentice Hall, Inc. All rights reserved. Outline 21 gradient.html (3 of 3) Set the fill color to red Set the fill style to 3 different gradient types

 2004 Prentice Hall, Inc. All rights reserved Rotation Fig Using gradients and Rotate.

 2004 Prentice Hall, Inc. All rights reserved Mouse Events and External Source Files Mouse events –Set MouseEventsEnabled property to 1 External source files –Set SourceURL property to location of file –Make HTML easier to read/maintain

 2004 Prentice Hall, Inc. All rights reserved. Outline 24 bounce2.html (1 of 3) Import code from newoval.txt

 2004 Prentice Hall, Inc. All rights reserved. Outline 25 bounce2.html (2 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline 26 bounce2.html (3 of 3) Enabling mouse events

 2004 Prentice Hall, Inc. All rights reserved. Outline 27 newoval.txt (1 of 1) Code moved to a separate text file

 2004 Prentice Hall, Inc. All rights reserved Mouse Events and External Source Files Fig Using SourceURL and MouseEventsEnabled.

 2004 Prentice Hall, Inc. All rights reserved Scaling Scale –Modifies size –Retains shape and position –param s are percentage to scale each dimension Greater than 1 grows, less than 1 shrinks position and z-index to place objects on page

 2004 Prentice Hall, Inc. All rights reserved. Outline 30 scaling.html (1 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline 31 scaling.html (2 of 4) Rotate and scale the drawing Defining buttons to control scaling, speed and rotation of the foreground

 2004 Prentice Hall, Inc. All rights reserved. Outline 32 scaling.html (3 of 4) Stack objects using z-index propertyDefining the background shapes

 2004 Prentice Hall, Inc. All rights reserved. Outline 33 scaling.html (4 of 4)

 2004 Prentice Hall, Inc. All rights reserved Scaling Fig Rotating a shape in three dimensions and scaling up and down.