在Python中提取通过操作符图像的数据

2024-04-24 06:06:10 发布

您现在位置:Python中文网/ 问答频道 /正文

在UV/图像编辑器中预览图像时,我可以单击鼠标右键,然后在下角显示有关坐标(X,Y)和颜色(R,G,B)的信息。如何在Python中获得这些信息(坐标、颜色)?你知道吗

我在源图像中找到了 https://github.com/martijnberger/blender/blob/master/source/blender/editors/space_image/image_ops.c#L2996

以及

static void image_sample_apply(bContext *C, wmOperator *op, const wmEvent *event)

但我不知道如何在Python中提取这些数据。你知道吗

enter image description here


Tags: https图像imagegithubmastercom信息颜色