interpolationMode property

BitmapInterpolationMode get interpolationMode

Implementation

BitmapInterpolationMode get interpolationMode {
  final value = calloc<Int32>();

  try {
    final hr = ptr.ref.vtable
            .elementAt(10)
            .cast<
                Pointer<
                    NativeFunction<
                        HRESULT Function(
                            VTablePointer lpVtbl, Pointer<Int32> value)>>>()
            .value
            .asFunction<
                int Function(VTablePointer lpVtbl, Pointer<Int32> value)>()(
        ptr.ref.lpVtbl, value);

    if (FAILED(hr)) throwWindowsException(hr);

    return BitmapInterpolationMode.from(value.value);
  } finally {
    free(value);
  }
}
set interpolationMode (BitmapInterpolationMode value)

Implementation

set interpolationMode(BitmapInterpolationMode value) {
  final hr = ptr.ref.vtable
          .elementAt(11)
          .cast<
              Pointer<
                  NativeFunction<
                      HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>()
          .value
          .asFunction<int Function(VTablePointer lpVtbl, int value)>()(
      ptr.ref.lpVtbl, value.value);

  if (FAILED(hr)) throwWindowsException(hr);
}