Share via


NSImage.BestRepresentation(CGRect, NSGraphicsContext, NSDictionary) Method

Definition

[Foundation.Export("bestRepresentationForRect:context:hints:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual AppKit.NSImageRep BestRepresentation(CoreGraphics.CGRect rect, AppKit.NSGraphicsContext? referenceContext, Foundation.NSDictionary? hints);
[<Foundation.Export("bestRepresentationForRect:context:hints:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member BestRepresentation : CoreGraphics.CGRect * AppKit.NSGraphicsContext * Foundation.NSDictionary -> AppKit.NSImageRep
override this.BestRepresentation : CoreGraphics.CGRect * AppKit.NSGraphicsContext * Foundation.NSDictionary -> AppKit.NSImageRep

Parameters

rect
CGRect
referenceContext
NSGraphicsContext
hints
NSDictionary

Returns

Attributes

Applies to