writeImage
writeImage(
image):Promise<void>
Defined in: index.ts:74
Writes image buffer to the clipboard.
- Android / iOS: Not supported.
string | number[] | ArrayBuffer | Uint8Array<ArrayBufferLike> | Image
Promise<void>
A promise indicating the success or failure of the operation.
import { writeImage } from '@tauri-apps/plugin-clipboard-manager';const buffer = [ // A red pixel 255, 0, 0, 255,
// A green pixel 0, 255, 0, 255,];await writeImage(buffer);2.0.0
© 2025 Tauri Contributors. CC-BY / MIT