width property

int get width
override

Width of the source image in pixels (after header parse / decode metadata).

Example:

final sourceWidth = _decoder!.width;
print('Source image width: $sourceWidth');

Implementation

int get width {
    final _getFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Int32 Function(Pointer<Void>),
        int Function(Pointer<Void>)
      >('navigine_sdk_flutter_BitmapRegionDecoder_width_get'));

    final _widthHandle = _getFfi(this.ptr);
    final _result = _widthHandle;
    exception.checkCallResult();
    return _result;
}