compositeToPoint:operation:
Composites the entire image to the specified point in the current coordinate system.
Declaration
- (void) compositeToPoint:(NSPoint) point operation:(NSCompositingOperation) operation;Parameters
- point:
The point at which to draw the image, specified in the current coordinate system.
- operation:
The compositing operation to use when drawing the image to the screen. The supported compositing operations are described in
Constants.
Discussion
This method draws the receiver’s best image representation at the specified point in the currently focused view. The entire image is drawn using its current size information. During drawing, the image is composited from its offscreen window cache. Because the offscreen cache is not created until the image representation is first used, this method may need to render the image before compositing. Bitmap representations in particular are not cached until they are explicitly rendered. You can use the lockFocus() and unlockFocus() methods to force the cached version to be created.
During printing, this method ignores the op parameter. Even though this parameter is ignored, this method attempts to render the image as close as possible to its appearance when the compositing operation is used on the screen. In either case, the best image representation is chosen for the printing context.
See Also
Related Documentation
Instance Methods
lockFocus()lockFocusFlipped(_:)unlockFocus()init(iconRef:)lockFocusOnRepresentation:bestRepresentationForDevice:compositeToPoint:fromRect:operation:compositeToPoint:fromRect:operation:fraction:compositeToPoint:operation:fraction:dissolveToPoint:fraction:dissolveToPoint:fromRect:fraction:setScalesWhenResized:scalesWhenResizedsetDataRetained:isDataRetained