MonobjcMonobjc Documented Class Library
DrawInRectFromRectOperationFraction Method (dstRect, srcRect, op, delta)
NamespacesMonobjc.AppKitNSImageDrawInRectFromRectOperationFraction(NSRect, NSRect, NSCompositingOperation, CGFloat)

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

Original signature is '- (void)drawInRect:(NSRect)dstRect fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(CGFloat)delta'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void DrawInRectFromRectOperationFraction(
	NSRect dstRect,
	NSRect srcRect,
	NSCompositingOperation op,
	CGFloat delta
)
Public Overridable Sub DrawInRectFromRectOperationFraction ( _
	dstRect As NSRect, _
	srcRect As NSRect, _
	op As NSCompositingOperation, _
	delta As CGFloat _
)
public:
virtual void DrawInRectFromRectOperationFraction(
	NSRect dstRect, 
	NSRect srcRect, 
	NSCompositingOperation op, 
	CGFloat delta
)
Parameters
dstRect (NSRect)
The rectangle in which to draw the image, specified in the current coordinate system.
srcRect (NSRect)
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. If you pass in NSZeroRect, the entire image is drawn.
op (NSCompositingOperation)
The compositing operation to use when drawing the image. See the NSCompositingOperation constants.
delta (CGFloat)
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.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)