Instantiates and returns an instance of NSGraphicsContext using the specified attributes.
Original signature is '+ (NSGraphicsContext *)graphicsContextWithAttributes:(NSDictionary *)attributes'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSGraphicsContext GraphicsContextWithAttributes( NSDictionary attributes )
Public Shared Function GraphicsContextWithAttributes ( _ attributes As NSDictionary _ ) As NSGraphicsContext
public: static NSGraphicsContext^ GraphicsContextWithAttributes( NSDictionary^ attributes )
Parameters
- attributes (NSDictionary)
- A dictionary of values associated with the keys described in “Attribute dictionary keys”. The attributes specify such things as representation format and destination.
Return Value
A new NSGraphicsContext object or nil if the object could not be created.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)