User Guide

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.