編集

次の方法で共有


NSImage Constructors

Definition

Overloads

NSImage()
NSImage(String, Boolean)
NSImage(NSData, Boolean)
NSImage(String)
NSImage(IntPtr)
NSImage(NSUrl)
NSImage(CGImage, CGSize)
NSImage(NSData)
NSImage(NSCoder)
NSImage(CGSize)
NSImage(NSPasteboard)
NSImage(NSObjectFlag)

NSImage()

[Foundation.Export("init")]
public NSImage ();
Attributes

Applies to

NSImage(String, Boolean)

public NSImage (string fileName, bool lazy);
new AppKit.NSImage : string * bool -> AppKit.NSImage

Parameters

fileName
String
lazy
Boolean

Applies to

NSImage(NSData, Boolean)

public NSImage (Foundation.NSData data, bool ignoresOrientation);
new AppKit.NSImage : Foundation.NSData * bool -> AppKit.NSImage

Parameters

data
NSData
ignoresOrientation
Boolean

Applies to

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)

[Foundation.Export("initWithCGImage:size:")]
public NSImage (CoreGraphics.CGImage cgImage, CoreGraphics.CGSize size);
new AppKit.NSImage : CoreGraphics.CGImage * CoreGraphics.CGSize -> AppKit.NSImage

Parameters

cgImage
CGImage
size
CGSize
Attributes

Applies to

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

Parameters

Applies to