
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
CGContextRef
bitmap.Declaration
Objective-C
@property (nonatomic, readonly) CGContextRef _Nonnull context;
-
A pointer to the destination in memory where the bitmap data is stores.
Declaration
Objective-C
@property (nonatomic, readonly) unsigned int *_Nonnull data;
-
Gets the
width
of the underlyingCGContextRef
bitmap.Declaration
Objective-C
@property (nonatomic, readonly) unsigned int width;
-
Gets the
height
of the underlyingCGContextRef
bitmap.Declaration
Objective-C
@property (nonatomic, readonly) unsigned int height;
-
Creates a new
SCIBitmap
instance from passed inSCIBitmap
region.Declaration
Objective-C
- (nonnull instancetype)initWithBitmap:(nonnull SCIBitmap *)bitmap region:(CGRect)region;
Parameters
bitmap
The origin bitmap to take region from.
region
The region of the bitmap, to be used as new bitmap.
-
Creates a new
SCIBitmap
instance.Declaration
Objective-C
- (nonnull instancetype)initWithSize:(CGSize)size;
Parameters
size
The size of the desired bitmap, in pixels.
-
Creates a new
SCIBitmap
instance.Declaration
Objective-C
- (nonnull instancetype)initWithData:(nonnull unsigned int *)data width:(unsigned int)width height:(unsigned int)height;
Parameters
data
The origin bitmap to take the region from.
width
The width of the required bitmap, in pixels, .
height
The height of the required bitmap, in pixels, .
-
Returns the raw value of the pixel at
[x, y]
from underlyingSCIBitmap
instance.Declaration
Objective-C
- (unsigned int)pixelAtX:(unsigned int)x y:(unsigned int)y;
Parameters
x
The x coordinate, to get pixel at.
y
The 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;
-
Creates a texture from this
SCIBitmap
instance.Declaration
Objective-C
- (nonnull id<ISCITexture2D>)createTexture;
Return Value
New
ISCITexture2D
instance.