LaiTool/src/main/IPCEvent/imageIpc.js

14 lines
345 B
JavaScript
Raw Normal View History

2024-06-01 15:08:22 +08:00
import { ipcMain } from "electron";
import { DEFINE_STRING } from '../../define/define_string'
import { Image } from "../Public/Image";
let image = new Image(global);
function ImageIpc() {
// 一拆四
ipcMain.handle(DEFINE_STRING.IMG.ONE_SPLIT_FOUR, async (event, value) => await image.OneSplitFour(value));
}
export {
ImageIpc
}