MSFBitmapUtils

Objective-C


@interface MSFBitmapUtils : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

Swift

class MSFBitmapUtils : NSObject

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

    + (MSFBitmap *)loadBitmapFromAssets:(NSString *)assetPath;

    Swift

    class func loadBitmap(fromAssets assetPath: String!) -> MSFBitmap!

    Parameters

    assetPath

    The asset path to the image to be loaded.

    Return Value

    The loaded bitmap.

  • Loads bitmap from specified file.

    Declaration

    Objective-C

    + (MSFBitmap *)loadBitmapFromFile:(NSString *)filePath;

    Swift

    class func loadBitmap(fromFile filePath: String!) -> MSFBitmap!

    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

    + (MSFBitmap *)createBitmapFromUIImage:(id)image;

    Swift

    class func createBitmap(fromUIImage image: Any!) -> MSFBitmap!

    Parameters

    image

    The reference UIImage.

    Return Value

    The created bitmap.

  • Creates a new UIImage object from an existing Bitmap.

    Declaration

    Objective-C

    + (id)createUIImageFromBitmap:(MSFBitmap *)bitmap;

    Swift

    class func createUIImage(from bitmap: MSFBitmap!) -> Any!

    Parameters

    bitmap

    The reference bitmap.

    Return Value

    The created UIImage.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()