我想在 DearPyGui 中将图像绘制到画布上:
import dearpygui.core as dpg
with sdpg.window("Main Window"):
dpg.set_main_window_size(800, 800)
dpg.set_main_window_title("Pixel selector")
dpg.add_drawing('drawing', width=400, height=350)
img = ImageGrab.grab(bbox=[0, 0, 100, 100])
# something like this would be great
dpg.draw_image('drawing', img, [0, 0], [100, 100])