iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIBitmap
@interface SCIBitmap : SCIDisposableBase
Defines and obj-c wrapper around CGContextRef bitmap context.
-
Gets the underlying
CGContextRefbitmap.Declaration
Objective-C
@property (nonatomic, readonly) CGContextRef _Nonnull context;Swift
var context: CGContext { get } -
A pointer to the destination in memory where the bitmap data is stores.
Declaration
Objective-C
@property (nonatomic, readonly) unsigned int *_Nonnull data;Swift
var data: UnsafeMutablePointer<UInt32> { get } -
Gets the
widthof the underlyingCGContextRefbitmap.Declaration
Objective-C
@property (nonatomic, readonly) unsigned int width;Swift
var width: UInt32 { get } -
Gets the
heightof the underlyingCGContextRefbitmap.Declaration
Objective-C
@property (nonatomic, readonly) unsigned int height;Swift
var height: UInt32 { get } -
Creates a new
SCIBitmapinstance from passed inSCIBitmapregion.Declaration
Objective-C
- (nonnull instancetype)initWithBitmap:(nonnull SCIBitmap *)bitmap region:(CGRect)region;Swift
init(bitmap: SCIBitmap, region: CGRect)Parameters
bitmapThe origin bitmap to take region from.
regionThe region of the bitmap, to be used as new bitmap.
-
Creates a new
SCIBitmapinstance.Declaration
Objective-C
- (nonnull instancetype)initWithSize:(CGSize)size;Swift
init(size: CGSize)Parameters
sizeThe size of the desired bitmap, in pixels.
-
Creates a new
SCIBitmapinstance.Declaration
Objective-C
- (nonnull instancetype)initWithData:(nonnull unsigned int *)data width:(unsigned int)width height:(unsigned int)height;Swift
init(data: UnsafeMutablePointer<UInt32>, width: UInt32, height: UInt32)Parameters
dataThe origin bitmap to take the region from.
widthThe width of the required bitmap, in pixels, .
heightThe height of the required bitmap, in pixels, .
-
Returns the raw value of the pixel at
[x, y]from underlyingSCIBitmapinstance.Declaration
Objective-C
- (unsigned int)pixelAtX:(unsigned int)x y:(unsigned int)y;Swift
func pixelAt(x: UInt32, y: UInt32) -> UInt32Parameters
xThe x coordinate, to get pixel at.
yThe y coordinate, to get pixel at.
Return Value
The raw value of the pixel at
[x, y].
-
Creates and returns a bitmap object that uses the specified image data.
Declaration
Objective-C
+ (nonnull SCIBitmap *)bitmapWithImage:(nonnull UIImage *)image;Swift
/*not inherited*/ init(image: UIImage)
-
Creates a texture from this
SCIBitmapinstance.Declaration
Objective-C
- (nonnull id<ISCITexture2D>)createTexture;Swift
func createTexture() -> any ISCITexture2DReturn Value
New
ISCITexture2Dinstance.
View on GitHub