getPixelFormat method

PixelFormat getPixelFormat()

Gets the pixel format.

return Pixel format. throws DocumentException An error has occurred during Document Library execution.

Implementation

PixelFormat getPixelFormat() {
  Pointer<Int32> pPixelFormat = calloc();
  try {
    var err = documentSDK.id3DocumentImage_GetPixelFormat(_pHandle.value, pPixelFormat);
    if (err != DocumentError.success.value) {
      throw DocumentException(err);
    }
    final vPixelFormat = PixelFormatX.fromValue(pPixelFormat.value);
    return vPixelFormat;
  } finally {
    calloc.free(pPixelFormat);
  }
}