dissolveToPoint:fromRect:fraction:
Composites a portion of the image to the specified location using the source-over operator.
Declaration
- (void) dissolveToPoint:(NSPoint) point fromRect:(NSRect) rect fraction:(CGFloat) fraction;Parameters
- point:
The point at which to draw the image, specified in the current coordinate system.
- rect:
The portion of the image you want to draw, specified in the image’s coordinate system.
- fraction:
The desired opacity of the image, specified as a value between 0.0 and 1.0. A value of 0.0 renders the image totally transparent while 1.0 renders it fully opaque. Values larger than 1.0 are interpreted as 1.0.
Discussion
Except for the choice of compositing operator, this method behaves in the same way as the compositeToPoint:fromRect:operation: method. During printing, the delta parameter is ignored.
If the source image contains alpha information, this operation may promote the destination NSWindow object to contain alpha information.
See Also
Related Documentation
Instance Methods
lockFocus()lockFocusFlipped(_:)unlockFocus()init(iconRef:)lockFocusOnRepresentation:bestRepresentationForDevice:compositeToPoint:operation:compositeToPoint:fromRect:operation:compositeToPoint:fromRect:operation:fraction:compositeToPoint:operation:fraction:dissolveToPoint:fraction:setScalesWhenResized:scalesWhenResizedsetDataRetained:isDataRetained