NSImage Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NSImage()
NSImage(String, Boolean)
NSImage(NSData, Boolean)
NSImage(String)
[Foundation.Export("initWithContentsOfFile:")]
public NSImage (string fileName);
new AppKit.NSImage : string -> AppKit.NSImage
Parameters
- fileName
- String
- Attributes
Applies to
NSImage(IntPtr)
protected internal NSImage (IntPtr handle);
new AppKit.NSImage : nativeint -> AppKit.NSImage
Parameters
- handle
-
IntPtr
nativeint
Applies to
NSImage(NSUrl)
[Foundation.Export("initWithContentsOfURL:")]
public NSImage (Foundation.NSUrl url);
new AppKit.NSImage : Foundation.NSUrl -> AppKit.NSImage
Parameters
- url
- NSUrl
- Attributes
Applies to
NSImage(CGImage, CGSize)
NSImage(NSData)
[Foundation.Export("initWithData:")]
public NSImage (Foundation.NSData data);
new AppKit.NSImage : Foundation.NSData -> AppKit.NSImage
Parameters
- data
- NSData
- Attributes
Applies to
NSImage(NSCoder)
[Foundation.Export("initWithCoder:")]
[ObjCRuntime.DesignatedInitializer]
public NSImage (Foundation.NSCoder coder);
new AppKit.NSImage : Foundation.NSCoder -> AppKit.NSImage
Parameters
- coder
- NSCoder
- Attributes
Applies to
NSImage(CGSize)
[Foundation.Export("initWithSize:")]
[ObjCRuntime.DesignatedInitializer]
public NSImage (CoreGraphics.CGSize aSize);
new AppKit.NSImage : CoreGraphics.CGSize -> AppKit.NSImage
Parameters
- aSize
- CGSize
- Attributes
Applies to
NSImage(NSPasteboard)
[Foundation.Export("initWithPasteboard:")]
public NSImage (AppKit.NSPasteboard pasteboard);
new AppKit.NSImage : AppKit.NSPasteboard -> AppKit.NSImage
Parameters
- pasteboard
- NSPasteboard
- Attributes
Applies to
NSImage(NSObjectFlag)
protected NSImage (Foundation.NSObjectFlag t);
new AppKit.NSImage : Foundation.NSObjectFlag -> AppKit.NSImage