콘텐츠로 이동

readImage

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/plugins/clipboard-manager · Kind Function

import { readImage } from '@netwiv/api/plugins/clipboard-manager';

Gets the clipboard content as Uint8Array image.

  • Android / iOS: Not supported.
function readImage(): Promise<Image>
import { readImage } from '@netwiv/api/plugins/clipboard-manager';
const clipboardImage = await readImage();
const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
const url = URL.createObjectURL(blob)

Upstream since 2.0.0


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