MonobjcMonobjc Documented Class Library
BestRepresentationForRectContextHints Method (rect, referenceContext, hints)
NamespacesMonobjc.AppKitNSImageBestRepresentationForRectContextHints(NSRect, NSGraphicsContext, NSDictionary)

Returns the best representation of the image for the specified rect using the provided hints.

Original signature is '- (NSImageRep *)bestRepresentationForRect:(NSRect)rect context:(NSGraphicsContext *)referenceContext hints:(NSDictionary *)hints'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSImageRep BestRepresentationForRectContextHints(
	NSRect rect,
	NSGraphicsContext referenceContext,
	NSDictionary hints
)
Public Overridable Function BestRepresentationForRectContextHints ( _
	rect As NSRect, _
	referenceContext As NSGraphicsContext, _
	hints As NSDictionary _
) As NSImageRep
public:
virtual NSImageRep^ BestRepresentationForRectContextHints(
	NSRect rect, 
	NSGraphicsContext^ referenceContext, 
	NSDictionary^ hints
)
Parameters
rect (NSRect)
The area of the image to return.
referenceContext (NSGraphicsContext)
A graphics context. This value can be nil.
hints (NSDictionary)
An optional dictionary of hints that provide more context for selecting or generating a CGImage, and may override properties of the referenceContext. See “Image Hint Dictionary Keys” for a summary of the possible key-value pairs.
Return Value
The image representation that most closely matches the specified criteria.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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