static tom.MutableDictionary image_by_name;
static tom.MutableIndexed image_path;
static public mutable ImageLoader image_loader;
tom.OutputStream (s) help tom.OutputStream s done tom.MutableKeyed done;
Image
arguments.
void load tom.MutableArray arguments;
image_directory
, which defaults to IMAGE_DIR
.
Image (image) createImage ImageRep rep withName tom.String n;
n
from the
representative rep
.
tom.Indexed image_path;
image_path
.
instance (id) (image) named tom.String name;
Image
know by the name
.
ImageRep
Subclassestom.Indexed imageUnfilteredFileTypes;
Image
without
filtering. This list comes from all registered ImageRep
s.
tom.Indexed imageUnfilteredPasteboardTypes;
Image
.
boolean canInitWithPasteboard Pasteboard pasteboard;
tom.Indexed imageFileTypes;
tom.Indexed imagePasteboardTypes;
public tom.String name;
public float width;
public float height;
tom.MutableIndexed representations;
tom.MutableIndexed cached;
id initByReferencingFile tom.String filename;
Image
from the data in filename. The file is
assumed to persist and may be reread later if the Image
is resized
or otherwise modified.
id initWithContentsOfFile tom.String filename;
Image
from the data in filename.
id initWithData tom.Data data;
Image
from data.
id initWithPasteboard Pasteboard pasteboard;
Image
with the data in pasteboard.
id initWithSize (float, float) (x, y);
Image
to the specified size.
void setSize (float, float) (w, h);
(float, float) size;
boolean setName tom.String n;
name
of the receiving image. Return NO
if name is
already in use; otherwise, return YES
.
void addRepresentation ImageRep rep;
rep
to the receiver's list of representations.
void addRepresentations tom.Indexed reps;
reps
to the receiver's list of
representations.
void lockFocus;
void lockFocusOnRepresentation ImageRep imageRep;
void unlockFocus;
void compositeToPoint (float, float) (x, y) operation int op;
void compositeToPoint (float, float) (p_x, p_y) fromRect (float, float, float, float) (x, y, w, h) operation int op;
void dissolveToPoint (float, float) (x, y) fraction float f;
void dissolveToPoint (float, float) (p_x, p_y) fromRect (float, float, float, float) (x, y, w, h) fraction float f;
void setPrefersColorMatch boolean flag;
boolean prefersColorMatch;
void setUsesEPSOnResolutionMismatch boolean flag;
boolean usesEPSOnResolutionMismatch;
void setMatchesOnMultipleResolution boolean flag;
boolean matchesOnMultipleResolution;
ImageRep bestRepresentationForDevice Device device_description;
device_description
. If device_description
is nil
, the current
device is assumed. See NSGraphics.h for appropriate dictionary keys
and values.
tom.Indexed representations;
void removeRepresentation ImageRep rep;
ImageRep
rep
from the receiver's list of representations.
void setCachedSeparately boolean flag;
boolean isCachedSeparately;
void setDataRetained boolean flag;
boolean isDataRetained;
void setCacheDepthMatchesImageDepth boolean flag;
boolean cacheDepthMatchesImageDepth;
boolean isValid;
void setScalesWhenResized boolean flag;
boolean scalesWhenResized;
void setBackgroundColor Color aColor;
Color backgroundColor;
boolean drawRepresentation ImageRep imageRep inRect (float, float, float, float) (x, y, w, h);
void recache;
void setDelegate ImageDelegate anObject;
Image
.
ImageDelegate delegate;
Image
.
tom.Data TIFFRepresentation;
tom.Data TIFFRepresentationUsingCompression int comp factor float aFloat;
deferred Image imageDidNotDraw Image sender inRect (float, float, float, float) (x, y, w, h);
tom.Bundle
s
are fully functional. Also, should BitmapImageRep
know everything
about any kind of image, should there be a TIFFBitmapImageRep
, or
should there be a TIFFImageLoader
which creates BitmapImageRep
s?
deferred Image loadImageNamed tom.String name;