Instance Method

drawAtPoint:

Draws the receiver's image data at the specified point in the current coordinate system.

Declaration

- (BOOL)drawAtPoint:(NSPoint)point;

Parameters

aPoint

The point in the current coordinate system at which to draw the image.

Return Value

YES if the image was successfully drawn; otherwise, NO. If the size of the image has not yet been set, this method returns NO immediately

Discussion

This method sets the origin of the current coordinate system to the specified point and then invokes the receiver’s draw method to draw the image at that point. Upon completion, it restores the current coordinates to their original setting. If aPoint is (0.0, 0.0), this method simply invokes the draw method.

See Also

Drawing the Image

- draw

Implemented by subclasses to draw the image in the current coordinate system.

- drawInRect:

Draws the image, scaling it (as needed) to fit the specified rectangle.

- drawInRect:fromRect:operation:fraction:respectFlipped:hints:

Draws all or part of the image in the specified rectangle in the current coordinate system.

NSImageHintKey

Constants for the keys to include in a hints dictionary when drawing the image.