MonobjcMonobjc Documented Class Library
DrawInRectFromRectOperationFractionRespectFlippedHints Method (dstSpacePortionRect, srcSpacePortionRect, op, requestedAlpha, respectContextIsFlipped, hints)
NamespacesMonobjc.AppKitNSImageRepDrawInRectFromRectOperationFractionRespectFlippedHints(NSRect, NSRect, NSCompositingOperation, CGFloat, Boolean, NSDictionary)

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

Original signature is '- (BOOL)drawInRect:(NSRect)dstSpacePortionRect fromRect:(NSRect)srcSpacePortionRect operation:(NSCompositingOperation)op fraction:(CGFloat)requestedAlpha respectFlipped:(BOOL)respectContextIsFlipped hints:(NSDictionary *)hints'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool DrawInRectFromRectOperationFractionRespectFlippedHints(
	NSRect dstSpacePortionRect,
	NSRect srcSpacePortionRect,
	NSCompositingOperation op,
	CGFloat requestedAlpha,
	bool respectContextIsFlipped,
	NSDictionary hints
)
Public Overridable Function DrawInRectFromRectOperationFractionRespectFlippedHints ( _
	dstSpacePortionRect As NSRect, _
	srcSpacePortionRect As NSRect, _
	op As NSCompositingOperation, _
	requestedAlpha As CGFloat, _
	respectContextIsFlipped As Boolean, _
	hints As NSDictionary _
) As Boolean
public:
virtual bool DrawInRectFromRectOperationFractionRespectFlippedHints(
	NSRect dstSpacePortionRect, 
	NSRect srcSpacePortionRect, 
	NSCompositingOperation op, 
	CGFloat requestedAlpha, 
	bool respectContextIsFlipped, 
	NSDictionary^ hints
)
Parameters
dstSpacePortionRect (NSRect)
The rectangle in which to draw the image, specified in the current coordinate system.
srcSpacePortionRect (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.
requestedAlpha (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.
respectContextIsFlipped (Boolean)
YES if the flipped context of the receiver should be respected, otherwise NO.
hints (NSDictionary)
An optional dictionary of hints that provide more context for selecting or generating the image. See Image_Hint_Dictionary_Keys for a summary of the possible key-value pairs.
Return Value
YES if the image was successfully drawn; otherwise, NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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