NTBitmapUtils
@interface NTBitmapUtils : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
A helper class for loading bitmaps and converting Bitmaps to UIImages an vice versa.
-
Loads the specified bitmap asset bundled with the application.
Declaration
Objective-C
+ (NTBitmap *)loadBitmapFromAssets:(NSString *)assetPath;Parameters
assetPathThe asset path to the image to be loaded.
Return Value
The loaded bitmap.
-
Loads bitmap from specified file.
Declaration
Objective-C
+ (NTBitmap *)loadBitmapFromFile:(NSString *)filePath;Parameters
filePathThe path to the image to be loaded.
Return Value
The loaded bitmap.
-
Creates a new Bitmap object from an existing UIImage.
Declaration
Objective-C
+ (NTBitmap *)createBitmapFromUIImage:(UIImage *)image;Parameters
imageThe reference UIImage.
Return Value
The created bitmap.
-
Creates a new UIImage object from an existing Bitmap.
Declaration
Objective-C
+ (UIImage *)createUIImageFromBitmap:(NTBitmap *)bitmap;Parameters
bitmapThe reference bitmap.
Return Value
The created UIImage.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTBitmapUtils Class Reference