Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSBitmapImageRepMBS class.

NSBitmapImageRepMBS.imageRepWithCGImage(CGImage as Variant) as NSBitmapImageRepMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates an NSBitmapImageRep object created from a Core Graphics image object.

cgimage: A Core Graphics image object (an opaque type) from which to create the receiver. This opaque type is retained.

An NSBitmapImageRep object initialized from the contents of the Core Graphics image or nil if the NSBitmapImageRep couldn't be created.

If you use this method, you should treat the resulting bitmap NSBitmapImageRep object as read only. Because it only retains the value in the cgImage parameter, rather than unpacking the data, accessing the pixel data requires the creation of a copy of that data in memory. Changes to that data are not saved back to the Core Graphics image.

Available in OS X v10.5 and later.

NSBitmapImageRepMBS.imageRepWithCGImageRef(CGImageHandle as Integer) as NSBitmapImageRepMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates an NSBitmapImageRep object created from a Core Graphics image reference.

CGImageHandle: A Core Graphics image object (an opaque type) from which to create the receiver. This opaque type is retained.

An NSBitmapImageRep object initialized from the contents of the Core Graphics image or nil if the NSBitmapImageRep couldn't be created.

If you use this method, you should treat the resulting bitmap NSBitmapImageRep object as read only. Because it only retains the value in the cgImage parameter, rather than unpacking the data, accessing the pixel data requires the creation of a copy of that data in memory. Changes to that data are not saved back to the Core Graphics image.

Available in OS X v10.5 and later.

NSBitmapImageRepMBS.imageRepWithCIImage(CIImage as variant) as NSBitmapImageRepMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 17.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates an NSBitmapImageRep object created from a CoreImage object.

CIImage: A Core Graphics image object (an opaque type) from which to create the receiver. This opaque type is retained.

An NSBitmapImageRep object initialized from the contents of the Core Graphics image or nil if the NSBitmapImageRep couldn't be created.

If you use this method, you should treat the resulting bitmap NSBitmapImageRep object as read only. Because it only retains the value in the CIImage parameter, rather than unpacking the data, accessing the pixel data requires the creation of a copy of that data in memory. Changes to that data are not saved back to the Core Graphics image.

Available in OS X v10.5 and later.

NSBitmapImageRepMBS.imageRepWithCIImageRef(CIImageHandle as Integer) as NSBitmapImageRepMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 17.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates an NSBitmapImageRep object created from a CoreImage reference.

CIImageHandle: A Core Graphics image object (an opaque type) from which to create the receiver. This opaque type is retained.

An NSBitmapImageRep object initialized from the contents of the Core Graphics image or nil if the NSBitmapImageRep couldn't be created.

If you use this method, you should treat the resulting bitmap NSBitmapImageRep object as read only. Because it only retains the value in the CIImage parameter, rather than unpacking the data, accessing the pixel data requires the creation of a copy of that data in memory. Changes to that data are not saved back to the Core Graphics image.

Available in OS X v10.5 and later.

NSBitmapImageRepMBS.imageRepWithData(data as Memoryblock) as NSBitmapImageRepMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates and returns an NSBitmapImageRep object initialized with the first image in the supplied data.

data: A data object containing one or more bitmapped images. The bitmapData parameter can contain data in any supported bitmap format.

Returns an NSBitmapImageRep instance or nil if the class is unable to create an image representation.

NSBitmapImageRepMBS.NSImageColorSyncProfileData as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a memoryblock containing the ColorSync profile data.
It can be used for TIFF, JPEG, GIF, and PNG files. This value is set when reading in and used when writing out image data. You can get the profile data for a particular color space from the corresponding NSColorSpace object or from the ColorSync Manager.

NSBitmapImageRepMBS.NSImageCompressionFactor as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number containing the compression factor of the image.
Used only for JPEG files. JPEG compression in TIFF files is not supported, and the factor is ignored. The value is a float between 0.0 and 1.0, with 1.0 resulting in no compression and 0.0 resulting in the maximum compression possible. It's set when reading in and used when writing out the image.

NSBitmapImageRepMBS.NSImageCompressionMethod as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number identifying the compression method of the image.
Used only for TIFF files. The value corresponds to one of the NSTIFFCompression constants, described below. It's set when reading in and used when writing out.

NSBitmapImageRepMBS.NSImageCurrentFrame as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number containing the current frame for an animated GIF file.
The first frame is 0.

NSBitmapImageRepMBS.NSImageCurrentFrameDuration as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number containing the duration (in seconds) of the current frame for an animated GIF image.
The frame duration can be a floating-point value. It is used when reading in, but not when writing out.

NSBitmapImageRepMBS.NSImageDitherTransparency as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number containing a boolean that indicates whether the image is dithered.
Used only when writing GIF files.

NSBitmapImageRepMBS.NSImageEXIFData as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies an dictionary containing the EXIF data for the image.
This property is used only when reading or writing JPEG files. The dictionary contains the EXIF keys and values. Th standard dictionary keys (that is, those that are not specific to camera vendors) are identical to those for kCGImagePropertyExifDictionary declared in the CGImageSource API. See kCGImagePropertyExifDictionary Keys for details.

NSBitmapImageRepMBS.NSImageFallbackBackgroundColor as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Specifies the background color to use when writing to an image format (such as JPEG) that doesn't support alpha. The color's alpha value is ignored. The default background color, when this property is not specified, is white. The value of the property should be an NSColorMBS object. This constant corresponds to the kCGImageDestinationBackgroundColor constant in Quartz.
Available in Mac OS X v10.5 and later.

NSBitmapImageRepMBS.NSImageFrameCount as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number containing the number of frames in an animated GIF file.
This value is used when reading in data.

NSBitmapImageRepMBS.NSImageGamma as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number containing the gamma value for the image.
Used only for PNG files. The gamma values is a floating-point number between 0.0 and 1.0, with 0.0 being black and 1.0 being the maximum color. It's set when reading in and used when writing out.

NSBitmapImageRepMBS.NSImageInterlaced as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number containing a Boolean value that indicates whether the image is interlaced.
Used only when writing out PNG files.

NSBitmapImageRepMBS.NSImageLoopCount as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number containing the number of loops to make when animating a GIF image.
A value of 0 indicates the animation should loop indefinitely. Values should be specified as Integer numbers. It is used when reading in but not when writing out the image.

NSBitmapImageRepMBS.NSImageProgressive as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies a number containing a boolean that indicates whether the image uses progressive encoding.
Used only for JPEG files. It's set when reading in and used when writing out.

NSBitmapImageRepMBS.NSImageRGBColorTable as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 12.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
One of the property keys.

Identifies an Memoryblock containing the RGB color table.
Used only for GIF files. It's stored as packed RGB. It's set when reading in and used when writing out.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...