
ADOBE DIRECTOR 11.0
User Guide
353
Texture methods
The pixel height and width of the 2D images you use as textures should be powers of 2 (that is, 2, 4, 8, 16, 32, and so
on). If not, the image will be resized to a dimension that is a power of 2. The
scaleDown()
method lets you retain
manual control over this procedure at the texture level.
nearFiltering
Get and set
Determines whether bilinear filtering is used
when rendering a projected texture map that
covers more screen space than the original.
For more information, see the Scripting Refer-
ence topics in the Director Help Panel.
TRUE (1)
compressed
Get and set
The property can be
TRUE (1)
or
FALSE (0)
:
TRUE (1)
: the texture is compressed
FALSE
(0)
: the texture is not compressed
The value changes automatically from
TRUE
(1)
to
FALSE (0)
when the texture is to be
rendered.
The value can be set to
FALSE (0)
to decom-
press or to
TRUE (1)
to remove the decom-
pressed representation from memory.
TRUE (1)
renderFormat
Get and set
This property determines how many bits are
used to render the texture. It takes the following
values:
#default
: the texture is rendered based on the
value of the
getRendererServices().textureRender
Format
property.
#rgbaWXYZ
: renders the texture using W bits for
the red channel, X bits for the green channel, Y
bits for the blue channel and Z bits for the alpha
channel. This is available by using the following
possible combinations:
#rgba8888
#rgba8880
#rgba5650
#rgba5550
#rgba5551
#rgba4444
#default
Method
Description
Returns
scaleDown()
Reduces the height of the texture to the next lowest power of 2.
This is useful for dynamically resizing textures to fit on a client
machine.
Nothing.
Property
Access
Description
Default
Содержание 65036570 - Director - PC
Страница 1: ...i ADOBE DIRECTOR 11 USER GUIDE...