Returns a CGImage capturing the drawing of the receiver.
Original signature is '- (CGImageRef)CGImageForProposedRect:(NSRect *)proposedDestRect context:(NSGraphicsContext *)context hints:(NSDictionary *)hints'
Available in Mac OS X v10.6 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual IntPtr CGImageForProposedRectContextHints( ref NSRect proposedDestRect, NSGraphicsContext context, NSDictionary hints )
Public Overridable Function CGImageForProposedRectContextHints ( _ ByRef proposedDestRect As NSRect, _ context As NSGraphicsContext, _ hints As NSDictionary _ ) As IntPtr
public: virtual IntPtr CGImageForProposedRectContextHints( NSRect% proposedDestRect, NSGraphicsContext^ context, 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.
- context (NSGraphicsContext)
- A graphics context., Can be NULL.
- 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
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)