MonobjcMonobjc Documented Class Library
CGImageForProposedRectContextHints Method (proposedDestRect, referenceContext, hints)
NamespacesMonobjc.AppKitNSImageCGImageForProposedRectContextHints(NSRect%, NSGraphicsContext, NSDictionary)

Returns a CGImage capturing the drawing of the receiver.

Original signature is '- (CGImageRef)CGImageForProposedRect:(NSRect *)proposedDestRect context:(NSGraphicsContext *)referenceContext hints:(NSDictionary *)hints'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual IntPtr CGImageForProposedRectContextHints(
	ref NSRect proposedDestRect,
	NSGraphicsContext referenceContext,
	NSDictionary hints
)
Public Overridable Function CGImageForProposedRectContextHints ( _
	ByRef proposedDestRect As NSRect, _
	referenceContext As NSGraphicsContext, _
	hints As NSDictionary _
) As IntPtr
public:
virtual IntPtr CGImageForProposedRectContextHints(
	NSRect% proposedDestRect, 
	NSGraphicsContext^ referenceContext, 
	NSDictionary^ hints
)
Parameters
proposedDestRect (NSRect%)
On input, the proposed destination rectangle for drawing the image. If NULL, it defaults to the smallest pixel-integral rectangle containing {{0,0}, [self size]}. The proposedDestRect is in user space in the reference context.
referenceContext (NSGraphicsContext)
A graphics context.
hints (NSDictionary)
A dictionary of hints that provide more context for selecting or generating a CGImage, and may override properties of the referenceContext.
Return Value
A CGImageRef. This may be an existing CGImage if one is available. If not, a new CGImage is created.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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