|
|
@ -91,7 +91,7 @@ async function writeImage(
|
|
|
|
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
|
|
|
|
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* const clipboardImage = await readImage();
|
|
|
|
* const clipboardImage = await readImage();
|
|
|
|
* const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
|
|
|
|
* const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
|
|
|
|
* const url = URL.createObjectURL(blob)
|
|
|
|
* const url = URL.createObjectURL(blob)
|
|
|
|
* ```
|
|
|
|
* ```
|
|
|
|
* @since 2.0.0
|
|
|
|
* @since 2.0.0
|
|
|
|