Skip to content

transformImage

Module @netwiv/api/image · Kind Function

import { transformImage } from '@netwiv/api/image';

Transforms image from various types into a type acceptable by Rust.

See tauri::image::JsImage for more information. Note the API signature is not stable and might change.

function transformImage<T>(image: string | number[] | Image | ArrayBuffer | Uint8Array<ArrayBufferLike> | null): T

Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.