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

    assetPath

    The 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

    filePath

    The 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

    image

    The reference UIImage.

    Return Value

    The created bitmap.

  • Creates a new UIImage object from an existing Bitmap.

    Declaration

    Objective-C

    + (UIImage *)createUIImageFromBitmap:(NTBitmap *)bitmap;

    Parameters

    bitmap

    The reference bitmap.

    Return Value

    The created UIImage.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;