532
Chapter 12: Methods
setNewLineConversion()
Usage
-- Lingo syntax
fileioObjRef
.setNewLineConversion(
intOnOff
)
// JavaScript syntax
fileioObjRef
.setNewLineConversion(
intOnOff
)
Description
Fileio method (Macintosh only); Specifies whether automatic conversion of new line characters is
on or off.
Parameters
intOnOff
Required. An integer that specifies whether automatic conversion is on or off. Valid
values include 0 (off ) or 1 (on).
See also
Fileio
setPixel()
Usage
-- Lingo syntax
imageObjRef
.setPixel(
x
,
y
,
colorObjOrIntValue
)
imageObjRef
.setPixel(point(
x, y
),
colorObjOrIntValue
)
// JavaScript syntax
imageObjRef
.setPixel(
x
,
y
,
colorObjOrIntValue
);
imageObjRef
.setPixel(point(
x, y
),
colorObjOrIntValue
);
Description
Image method. Sets the color value of the pixel at a specified point in a given image.
If setting many pixels to the color of another pixel with
getPixel()
, it is faster to set them
as integers.
For best performance with color objects, use an indexed color object with 8-bit or lower images,
and use an RGB color object with 16-bit or higher images.
This method returns FALSE if the specified pixel falls outside the specified image.
To see an example of this method used in a completed movie, see the Imaging movie in the
Learning/Lingo folder inside the Director application folder.
Parameters
x
Required if specifying a pixel using
x
and
y
coordinates. An integer that specifies the
x
coordinate of the pixel.
y
Required if specifying a pixel using
x
and
y
coordinates. An integer that specifies the
y
coordinate of the pixel.
point
(x, y)
Required if specifying a pixel using a point. A point that specifies the pixel.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...