bitsPerSample property
int
bitsPerSample
Implementation
int get bitsPerSample {
final retValuePtr = calloc<Int16>();
try {
final hr = (ptr.ref.vtable + 17)
.cast<
Pointer<
NativeFunction<
Int32 Function(Pointer, Pointer<Int16> BitsPerSample)>>>()
.value
.asFunction<
int Function(Pointer,
Pointer<Int16> BitsPerSample)>()(ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
final retValue = retValuePtr.value;
return retValue;
} finally {
free(retValuePtr);
}
}
Implementation
set bitsPerSample(int value) {
final hr = (ptr.ref.vtable + 18)
.cast<
Pointer<
NativeFunction<Int32 Function(Pointer, Int16 BitsPerSample)>>>()
.value
.asFunction<
int Function(Pointer, int BitsPerSample)>()(ptr.ref.lpVtbl, value);
if (FAILED(hr)) throw WindowsException(hr);
}