NTBitmapUtils


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

A helper class for loading bitmaps and converting Bitmaps to UIImages an vice versa.

  • یک bitmap خاص را از داخل assets برنامه بارگذاری می‌کند

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    assetPath

    مسیر asset مرتبط با تصویری که باید بارگذاری شود

    Return Value

    bitmap بارگذاری شده

  • یک bitmap از فایل مشخص شده بارگذاری می‌کند.

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    filePath

    مسیری تصویری که باید بارگذاری شود

    Return Value

    bitmap بارگذاری شده

  • Creates a new Bitmap object from an existing UIImage.

    Declaration

    Objective-C

    + (NTBitmap *)createBitmapFromUIImage:(UIImage *)image;

    Swift

    class func createBitmap(from image: UIImage!) -> NTBitmap!

    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;

    Swift

    class func createUIImage(from bitmap: NTBitmap!) -> UIImage!

    Parameters

    bitmap

    The reference bitmap.

    Return Value

    The created UIImage.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;