Up
Authors
- Adam Fedor (
fedor@colorado.edu
)
-
Abstract representation of an image.
Copyright: (C) 1996 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSImageRep.h
- Conforms to:
- NSCoding
- NSCopying
Availability: OpenStep
Description forthcoming.
Instance Variables
Method summary
+ (BOOL)
canInitWithData: (
NSData*)data;
Availability: OpenStep
Returns
NO
. It is the subclass'
responsibility to implement this method.
See Also:
+ (BOOL)
canInitWithPasteboard: (
NSPasteboard*)pasteboard;
Availability: OpenStep
Description forthcoming.
+ (
NSArray*)
imageFileTypes;
Availability: OpenStep
Returns array produced by calling
-imageUnfilteredFileTypes
.
+ (
NSArray*)
imagePasteboardTypes;
Availability: OpenStep
Description forthcoming.
+ (Class)
imageRepClassForData: (
NSData*)data;
Availability: OpenStep
Description forthcoming.
+ (Class)
imageRepClassForFileType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
+ (Class)
imageRepClassForPasteboardType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
+ (id)
imageRepWithContentsOfFile: (
NSString*)filename;
Availability: OpenStep
Returns a NSImageRep with the contents of
filename.
+ (id)
imageRepWithContentsOfURL: (
NSURL*)anURL;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (id)
imageRepWithPasteboard: (
NSPasteboard*)pasteboard;
Availability: OpenStep
Description forthcoming.
+ (
NSArray*)
imageRepsWithContentsOfFile: (
NSString*)filename;
Availability: OpenStep
Returns an array of newly allocated NSImageRep
objects with the contents of filename.
+ (
NSArray*)
imageRepsWithContentsOfURL: (
NSURL*)anURL;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSArray*)
imageRepsWithPasteboard: (
NSPasteboard*)pasteboard;
Availability: OpenStep
Description forthcoming.
+ (
NSArray*)
imageUnfilteredFileTypes;
Availability: OpenStep
Returns
nil
. It is the subclass'
responsibility to implement this method.
See Also:
+ (
NSArray*)
imageUnfilteredPasteboardTypes;
Availability: OpenStep
Description forthcoming.
+ (void)
registerImageRepClass: (Class)imageRepClass;
Availability: OpenStep
Description forthcoming.
+ (
NSArray*)
registeredImageRepClasses;
Availability: OpenStep
Description forthcoming.
+ (void)
unregisterImageRepClass: (Class)imageRepClass;
Availability: OpenStep
Description forthcoming.
- (
NSInteger)
bitsPerSample;
Availability: OpenStep
Returns the bits per sample of the receiver.
See Also:
- (
NSString*)
colorSpaceName;
Availability: OpenStep
Description forthcoming.
- (BOOL)
draw;
Availability: OpenStep
Primitive method which must be overridden by
subclasses to perform their drawing. They should
draw inside a rectangle with an origin at (0, 0) and a
size equal to the receiver's size, and they should
entirely fill this rectangle, overwriting the
destination alpha as well.
- (BOOL)
drawAtPoint: (
NSPoint)aPoint;
Availability: OpenStep
Description forthcoming.
- (BOOL)
drawInRect: (
NSRect)aRect;
Availability: OpenStep
Description forthcoming.
- (BOOL)
hasAlpha;
Availability: OpenStep
Description forthcoming.
- (BOOL)
isOpaque;
Availability: OpenStep
Description forthcoming.
- (
NSInteger)
pixelsHigh;
Availability: OpenStep
Description forthcoming.
- (
NSInteger)
pixelsWide;
Availability: OpenStep
Description forthcoming.
- (void)
setAlpha: (BOOL)flag;
Availability: OpenStep
Description forthcoming.
- (void)
setBitsPerSample: (
NSInteger)anInt;
Availability: OpenStep
Sets the number of bits for each component of a pixel.
See Also:
- (void)
setColorSpaceName: (
NSString*)aString;
Availability: OpenStep
Description forthcoming.
- (void)
setOpaque: (BOOL)flag;
Availability: OpenStep
Description forthcoming.
- (void)
setPixelsHigh: (
NSInteger)anInt;
Availability: OpenStep
Description forthcoming.
- (void)
setPixelsWide: (
NSInteger)anInt;
Availability: OpenStep
Description forthcoming.
- (void)
setSize: (
NSSize)aSize;
Availability: OpenStep
Sets the size of the image to aSize.
- (
NSSize)
size;
Availability: OpenStep
Returns the size of the image.
Instance Variables for NSImageRep Class
@protected NSInteger _bitsPerSample;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _colorSpace;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _hasAlpha;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected BOOL _isOpaque;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSInteger _pixelsHigh;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSInteger _pixelsWide;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSSize _size;
Availability: OpenStep
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Up