QuickTime provides the ability to rotate, scale, and offset a QuickTime movie's image within its sprite's bounding rectangle. You can take advantage of these new features by manipulating the sprite's rotation
, scale
, and translation
properties.
You can set the rotation
, scale
, and translation
properties for either a QuickTime icon or its sprite. When you add a new QuickTime icon to the flowline, the sprite takes the current property values stored with the sprite icon. When you change the icon's properties, its sprite is affected even when it isn't currently playing in the Presentation window. Changing a sprite's properties with SetSpriteProperty
will affect the sprite only if it appears in the Presentation window.
For example, imagine that a sprite icon named "QuickTime" is on the flowline. The sprite from this sprite icon is currently playing in the Presentation window. The following commands in a calculation window show that the sprite has the same rotation
property setting as the sprite icon.
IconRotation := GetIconProperty(IconID@"QuickTime", #rotation) -- IconRotation is 45 SpriteRotation := GetSpriteProperty(IconID@"QuickTime", #rotation) -- SpriteRotation is 45 |
The following commands demonstrate that setting the rotation of the sprite icon broadcasts the change to its sprites. |
SetIconProperty(IconID@"QuickTime", #rotation, 90) IconRotation := GetIconProperty(IconID@"QuickTime", #rotation) -- IconRotation is 90 SpriteRotation := GetSpriteProperty(IconID@"QuickTime", #rotation) -- SpriteRotation is 90 |
Now notice that setting the rotation of the sprite doesn't affect the sprite icon. |
SetSpriteProperty(IconID@"QuickTime", #rotation, 180) IconRotation := GetIconProperty(IconID@"QuickTime", #rotation) -- IconRotation is 90 SpriteRotation := GetSpriteProperty(IconID@"QuickTime", #rotation) -- SpriteRotation is 180 |
|