MonobjcMonobjc Documented Class Library
RepresentationUsingTypeProperties Method (storageType, properties)
NamespacesMonobjc.AppKitNSBitmapImageRepRepresentationUsingTypeProperties(NSBitmapImageFileType, NSDictionary)

Formats the receiver’s image data using the specified storage type and properties and returns it in a data object.

Original signature is '- (NSData *)representationUsingType:(NSBitmapImageFileType)storageType properties:(NSDictionary *)properties'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSData RepresentationUsingTypeProperties(
	NSBitmapImageFileType storageType,
	NSDictionary properties
)
Public Overridable Function RepresentationUsingTypeProperties ( _
	storageType As NSBitmapImageFileType, _
	properties As NSDictionary _
) As NSData
public:
virtual NSData^ RepresentationUsingTypeProperties(
	NSBitmapImageFileType storageType, 
	NSDictionary^ properties
)
Parameters
storageType (NSBitmapImageFileType)
An enum constant specifying a file type for bitmap images. It can be NSBMPFileType, NSGIFFileType, NSJPEGFileType, NSPNGFileType, or NSTIFFFileType.
properties (NSDictionary)
A dictionary that contains key-value pairs specifying image properties. These string constants used as keys and the valid values are described in “Bitmap image properties.”
Return Value
A data object containing the receiver’s image data in the specified format. You can write this data to a file or use it to create a new NSBitmapImageRep object.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)