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.

C# | Visual Basic | Visual 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 )

- 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.”

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.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)