C# Class Monobjc.AppKit.NSImage

Afficher le fichier Open project: Monobjc/monobjc Class Usage Examples

Méthodes publiques

Méthode Description
GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Populates a T:System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.

ImageEncryptedNamed ( NSString name, NSString encryptionSeed ) : NSImage

Returns the NSImage instance associated with the specified name (from an encrypted content).

ImageFromEncryptedData ( NSData encryptedData, NSString encryptionSeed ) : NSImage

Decrypts the given data and return an image.

ImageFromEncryptedPath ( NSString path, NSString encryptionSeed ) : NSImage

Decrypts the given resource and return an image.

ImageFromEncryptedResource ( NSString name, NSString encryptionSeed ) : NSImage

Decrypts the given resource and return an image.

ImageFromFile ( NSString filename ) : NSImage

Create a NSImage from a file.

ImageFromResource ( Type type, String resourceName ) : NSImage

Create a NSImage from a manifest resource stream.

Once retrieved, the instance is named and cached.

ImageFromStream ( Stream stream ) : NSImage

Create a NSImage from a stream.

Méthodes protégées

Méthode Description
NSImage ( SerializationInfo info, StreamingContext context ) : System

Initializes a new instance of the NSImage class.

This constructor is called during de-serializatin of embedded images for example.

Private Methods

Méthode Description
DataFromSerialization ( SerializationInfo info ) : NSData

Returns a NSData instance from the serialization context.

Method Details

GetObjectData() public méthode

Populates a T:System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
/// The caller does not have the required permission. ///
public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info SerializationInfo The to populate with data.
context StreamingContext The destination (see ) for this serialization.
Résultat void

ImageEncryptedNamed() public static méthode

Returns the NSImage instance associated with the specified name (from an encrypted content).

public static ImageEncryptedNamed ( NSString name, NSString encryptionSeed ) : NSImage
name Monobjc.Foundation.NSString The name associated with the desired image.
encryptionSeed Monobjc.Foundation.NSString The encryption seed to use.
Résultat NSImage

ImageFromEncryptedData() public static méthode

Decrypts the given data and return an image.
public static ImageFromEncryptedData ( NSData encryptedData, NSString encryptionSeed ) : NSImage
encryptedData Monobjc.Foundation.NSData The encrypted artwork data.
encryptionSeed Monobjc.Foundation.NSString The encryption seed to use.
Résultat NSImage

ImageFromEncryptedPath() public static méthode

Decrypts the given resource and return an image.
public static ImageFromEncryptedPath ( NSString path, NSString encryptionSeed ) : NSImage
path Monobjc.Foundation.NSString The image resource path.
encryptionSeed Monobjc.Foundation.NSString The encryption seed to use.
Résultat NSImage

ImageFromEncryptedResource() public static méthode

Decrypts the given resource and return an image.
public static ImageFromEncryptedResource ( NSString name, NSString encryptionSeed ) : NSImage
name Monobjc.Foundation.NSString The image resource name.
encryptionSeed Monobjc.Foundation.NSString The encryption seed to use.
Résultat NSImage

ImageFromFile() public static méthode

Create a NSImage from a file.
public static ImageFromFile ( NSString filename ) : NSImage
filename Monobjc.Foundation.NSString The filename.
Résultat NSImage

ImageFromResource() public static méthode

Create a NSImage from a manifest resource stream.

Once retrieved, the instance is named and cached.

public static ImageFromResource ( Type type, String resourceName ) : NSImage
type System.Type The type whose assembly contains the manifest resource.
resourceName String Name of the resource.
Résultat NSImage

ImageFromStream() public static méthode

Create a NSImage from a stream.
public static ImageFromStream ( Stream stream ) : NSImage
stream Stream The stream.
Résultat NSImage

NSImage() protected méthode

Initializes a new instance of the NSImage class.

This constructor is called during de-serializatin of embedded images for example.

protected NSImage ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo The serialization info.
context StreamingContext The serialization context.
Résultat System