@tauri-apps/plugin-clipboard-manager - v2.3.0
    Preparing search index...

    Function writeImage

    • Writes image buffer to the clipboard.

      • Android / iOS: Not supported.

      Parameters

      Returns 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