Chapter 3
164
crop() (member command)
Syntax
member(
whichMember
).crop(
rectToCropTo
)
crop member
whichMember, rectToCropTo
Description
Bitmap command; allows a bitmap cast member to be cropped to a specific size.
You can use
crop
to trim existing cast members, or in conjunction with the picture of the Stage to
grab a snapshot and then crop it to size for display.
The registration point is kept in the same location so the bitmap does not move in relation to the
original position.
Example
This statement sets an existing bitmap member to a snapshot of the Stage, then crops the
resulting image to a rectangle equal to sprite 10:
member("stage image").picture = (the stage).picture
member("stage image").crop(sprite(10).rect)
See also
picture (cast member property)
crop (cast member property)
Syntax
member(
whichCastMember
).crop
the crop of member
whichCastMember
Description
Cast member property; scales a digital video cast member to fit exactly inside the sprite rectangle
in which it appears (
FALSE
), or it crops but doesn’t scale the cast member to fit inside the sprite
rectangle (
TRUE
).
This property can be tested and set.
Example
This statement instructs Lingo to crop any sprite that refers to the digital video cast member
Interview.
Dot syntax:
member("Interview").crop = TRUE
Verbose syntax:
set the crop of member "Interview" to TRUE
See also
center
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...