Images

Summary
name (string)
fileName (string)
path (string)
Image
data (Data)
data (Data)
Image
Loads an image from a URL.
named (string)
An array containing two float elements, the width and height.
int
jsval
Replaces the contents of this image with a new image created with the data.
rect (jsval)
rect (jsval) fromRect (jsval) operation (int) fraction (double)
point (jsval) fromRect (jsval) operation (int) fraction (double)
rect (jsval) operation (int) fraction (double)
path (string)
Crops the image to the given rectangle.

Functions

imageNamed

Image imageNamed(string name)

applicationImageNamed

Image applicationImageNamed(string name)

parameters

name (string)

returns

Image

imageWithContentsOfFile

Image imageWithContentsOfFile(string fileName ,
bool cache)

parameters

fileName (string)

returns

Image

imageAtPath

Image imageAtPath(string path)

parameters

path (string)

returns

Image

defaultDesktopImage

Image defaultDesktopImage()

returns

Image

imageWithData

Image imageWithData(Data data)

parameters

data (Data)

returns

Image

setDesktopImageData

void setDesktopImageData(Data data)

parameters

data (Data)

createApplicationDefaultPNG

Image createApplicationDefaultPNG()

returns

Image

imageFromURL

Image imageFromURL(string url)

Loads an image from a URL.

Image

Summary
named (string)
An array containing two float elements, the width and height.
int
jsval
Replaces the contents of this image with a new image created with the data.
rect (jsval)
rect (jsval) fromRect (jsval) operation (int) fraction (double)
point (jsval) fromRect (jsval) operation (int) fraction (double)
rect (jsval) operation (int) fraction (double)
path (string)
Crops the image to the given rectangle.

Functions and Properties

Image

Image(string named)

parameters

named (string)

size

jsval size readonly

returns

An array containing two float elements, the width and height.

orientation

int orientation

returns

int

patternColor

jsval patternColor readonly

returns

jsval

setImageFromData

setImageFromData(Data data)

Replaces the contents of this image with a new image created with the data.

drawAsPatternInRect

drawAsPatternInRect(jsval rect)

parameters

rect (jsval)

compositeToRect

compositeToRect(jsval rect ,
jsval fromRect ,
int operation ,
double fraction)

parameters

rect (jsval) fromRect (jsval) operation (int) fraction (double)

compositeToPoint

compositeToPoint(jsval point ,
jsval fromRect ,
int operation ,
double fraction)

parameters

point (jsval) fromRect (jsval) operation (int) fraction (double)

draw1PartImageInRect

draw1PartImageInRect(jsval rect ,
int operation ,
double fraction)

parameters

rect (jsval) operation (int) fraction (double)

saveToFile

bool saveToFile(string path)

parameters

path (string)

returns

bool

resize

resize(int width ,
int height)

crop

crop(jsval rect)

Crops the image to the given rectangle.

createCopy

Image createCopy()
Image imageNamed(string name)
Image applicationImageNamed(string name)
name (string)
Image imageWithContentsOfFile(string fileName ,
bool cache)
fileName (string)
Image imageAtPath(string path)
path (string)
Image defaultDesktopImage()
Image
Image imageWithData(Data data)
data (Data)
void setDesktopImageData(Data data)
data (Data)
Image createApplicationDefaultPNG()
Image
Image imageFromURL(string url)
Loads an image from a URL.
Image(string named)
named (string)
jsval size readonly
An array containing two float elements, the width and height.
int orientation
int
jsval patternColor readonly
jsval
setImageFromData(Data data)
Replaces the contents of this image with a new image created with the data.
drawAsPatternInRect(jsval rect)
rect (jsval)
compositeToRect(jsval rect ,
jsval fromRect ,
int operation ,
double fraction)
rect (jsval) fromRect (jsval) operation (int) fraction (double)
compositeToPoint(jsval point ,
jsval fromRect ,
int operation ,
double fraction)
point (jsval) fromRect (jsval) operation (int) fraction (double)
draw1PartImageInRect(jsval rect ,
int operation ,
double fraction)
rect (jsval) operation (int) fraction (double)
bool saveToFile(string path)
path (string)
resize(int width ,
int height)
crop(jsval rect)
Crops the image to the given rectangle.
Image createCopy()