Instance Method

drawInRect:

Draws the image in the specified rectangle.

Declaration

- (void)drawInRect:(NSRect)rect;

Parameters

rect

The rectangle in which to draw the image, specified in the current coordinate system.

Discussion

This method draws the entire image in the specified rectangle, scaling the image as needed. The method composites the image using the NSCompositeSourceOver operation

See Also

Drawing the Image

- drawAtPoint:fromRect:operation:fraction:

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

- drawInRect:fromRect:operation:fraction:

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

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

Draws all or part of the image in the specified rectangle respecting the hints and the orientation of the current coordinate system.

- drawRepresentation:inRect:

Draws the image using the specified image representation object.

NSCompositingOperation

Compositing operators, described in terms of having source and destination images, each having an opaque and transparent region.