Loading...
Searching...
No Matches
NCBitmapRegionDecoder Class Reference

Сlass is used for getting bitmaps (png, jpg, svg) from byte array. More...

#include <com/navigine/idl/objc/NCBitmapRegionDecoder.h>

Inherits NSObject.

Instance Methods

(nullable UIImage *) - decodeRegion:sampleSize:
 Method is used to decode rectangle region in the image specified by rect.
 

Class Methods

(nullable NCBitmapRegionDecoder *) + newInstance:
 Method is used to create instance of BitmapRegionDecoder.
 

Detailed Description

Сlass is used for getting bitmaps (png, jpg, svg) from byte array.

Definition at line 18 of file NCBitmapRegionDecoder.h.

Method Documentation

◆ decodeRegion:sampleSize:

- (nullable UIImage *) decodeRegion: (nonnull NCRectangle *) rect
sampleSize: (int32_t) sampleSize 

Method is used to decode rectangle region in the image specified by rect.

Parameters
rectarea to render Rectangle
sampleSizeif set to a value > 1, requests the decoder to subsample the original image, returning a smaller image to save memory.
Returns
constructed bitmap

◆ newInstance:

+ (nullable NCBitmapRegionDecoder *) newInstance: (nonnull NSData *) data

Method is used to create instance of BitmapRegionDecoder.

Parameters
dataraw image data (could be raw svg string)
Returns
nstance of decoder, which could be used for decoding byte array to bitmap.

The documentation for this class was generated from the following file: