Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSBitmapImageRepMBS.imageRepWithCGImage(CGImage as Variant) as NSBitmapImageRepMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 14.2 Yes No No Yes, macOS only No
Function: Creates an NSBitmapImageRep object created from a Core Graphics image object.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.imageRepWithCGImageRef(CGImageHandle as Integer) as NSBitmapImageRepMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 14.2 Yes No No Yes, macOS only No
Function: Creates an NSBitmapImageRep object created from a Core Graphics image reference.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.imageRepWithCIImage(CIImage as variant) as NSBitmapImageRepMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 17.2 Yes No No Yes, macOS only No
Function: Creates an NSBitmapImageRep object created from a CoreImage object.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.imageRepWithCIImageRef(CIImageHandle as Integer) as NSBitmapImageRepMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 17.2 Yes No No Yes, macOS only No
Function: Creates an NSBitmapImageRep object created from a CoreImage reference.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.imageRepWithData(data as Memoryblock) as NSBitmapImageRepMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: Creates and returns an NSBitmapImageRep object initialized with the first image in the supplied data.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageColorSyncProfileData as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageCompressionFactor as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageCompressionMethod as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageCurrentFrame as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
Identifies a number containing the current frame for an animated GIF file.
The first frame is 0.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageCurrentFrameDuration as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageDitherTransparency as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
Identifies a number containing a boolean that indicates whether the image is dithered.
Used only when writing GIF files.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageEXIFData as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageFallbackBackgroundColor as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageFrameCount as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
Identifies a number containing the number of frames in an animated GIF file.
This value is used when reading in data.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageGamma as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageInterlaced as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
Identifies a number containing a Boolean value that indicates whether the image is interlaced.
Used only when writing out PNG files.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageLoopCount as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageProgressive as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

NSBitmapImageRepMBS.NSImageRGBColorTable as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa Drawing MBS MacBase Plugin 12.0 Yes No No Yes, macOS only No
Function: One of the property keys.
Notes:
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.

Feedback, Comments & Corrections

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




Links
MBS Xojo tutorial videos