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.

C# | Visual Basic | Visual 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 )

- 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.

A CGImageRef. This may be an existing CGImage if one is available. If not, a new CGImage is created.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)