-
Notifications
You must be signed in to change notification settings - Fork 5
Class NCBitmapRegionDecoder
Il Kadyrov edited this page Nov 5, 2020
·
1 revision
NCBitmapRegionDecoder class is used for getting UIImage from byte array.
Referenced from: NCResourceManager.
+ (nullable NCBitmapRegionDecoder *)newInstance:(nonnull NSData *)data
length:(int32_t)length;
Function returns the instance of NCBitmapRegionDecoder, which could be used for decoding byte array to UIImage.
-
data
— byte array of compressed image data. -
length
— length ofdata
byte array.
NCBitmapRegionDecoder class instance.
- (nullable UIImage *)decodeRegion:(nonnull NCRectangle *)rect
sampleSize:(int32_t)sampleSize;
Function decodes a rectangle region in the image specified by rect.
-
rect
— byte array of image data. -
sampleSize
— if set to a value > 1, requests the decoder to subsample the original image, returning a smaller image to save memory.
UIImage class instance.
Tutorials
Classes
- NCNavigineSdk
- NCLocationListManager
- NCLocationManager
- NCNavigationManager
- NCRouteManager
- NCZoneManager
- NCNotificationManager
- NCMeasurementManager
- NCLocationEditManager
- NCResourceManager
- NCLocation
- NCSublocation
- NCCategory
- NCVenue
- NCZone
- NCBeacon
- NCEddystone
- NCWifi
- NCLocationView
- NCGestureRecognizerDelegate
- NCCircleMapObject
- NCLineMapObject
- NCLocationListListener
- NCLocationListener
- NCPositionListener
- NCRouteListener
- NCZoneListener
- NCNotificationListener
- NCLocationEditListener
- NCMeasurementListener
- NCResourceListener
- NCResourceUploadListener
- NCNotification
- NCPosition
- NCSignalMeasurement
- NCSensorMeasurement
- NCImage
- NCRoutePath
- NCRouteEvent
- NCLocationPoint
- NCLocationInfo
- NCBitmapRegionDecoder