DHTML Structured Graphics ActiveX Control
DHTML Structured Graphics ActiveX Control
Objectives
30.1 Introduction
• Translate
– Move and transform shapes
• New params
– 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
30.4 Rotation
• Rotate
– Rotate shapes in three-dimensional space
• New params
– 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
30.4 Rotation
Fig. 30.4 Using gradients and Rotate.
30.6 Scaling
• Scale
– Modifies size
– Retains shape and position
– params are percentage to scale each dimension
• Greater than 1 grows, less than 1 shrinks
• position and z-index to place objects on page
30.6 Scaling
Fig. 30.7 Rotating a shape in three dimensions and scaling up and down.