Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/AppKit.framework |
Availability | Available in Mac OS X v10.4 and later. |
Declared in | NSCIImageRep.h |
The Application Kit adds three methods to the Core Image framework's CIImage class.
Draws all or part of the image at the specified point in the current coordinate system.
- (void)drawAtPoint:(NSPoint)point fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(CGFloat)delta
The location in the current coordinate system at which to draw the image.
The source rectangle specifying the portion of the image you want to draw. The coordinates of this rectangle must be specified using the image's own coordinate system.
The compositing operation to use when drawing the image.
The opacity of the image, specified as a value from 0.0 to 1.0. Specifying a value of 0.0 draws the image as fully transparent while a value of 1.0 draws the image as fully opaque. Values greater than 1.0 are interpreted as 1.0.
The image content is drawn at its current resolution and is not scaled unless the CTM of the current coordinate system itself contains a scaling factor. The image is otherwise positioned and oriented using the current coordinate system.
NSCIImageRep.h
Draws all or part of the image in the specified rectangle in the current coordinate system
- (void)drawInRect:(NSRect)dstRect fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(CGFloat)delta
The rectangle in which to draw the image.
The source rectangle specifying the portion of the image you want to draw. The coordinates of this rectangle must be specified using the image's own coordinate system.
The compositing operation to use when drawing the image.
The opacity of the image, specified as a value from 0.0 to 1.0. Specifying a value of 0.0 draws the image as fully transparent while a value of 1.0 draws the image as fully opaque. Values greater than 1.0 are interpreted as 1.0.
If the srcRect
and dstRect
rectangles have different sizes, the source portion of the image is scaled to fit the specified destination rectangle. The image is otherwise positioned and oriented using the current coordinate system.
NSCIImageRep.h
Initializes the receiver, a newly allocated CIImage
object, with the specified bitmap.
- (id)initWithBitmapImageRep:(NSBitmapImageRep *)bitmapImageRep
An image representation object containing the bitmap data.
The resulting CIImage
object.
NSCIImageRep.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-06-08)