企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# draw_getpixel_ext ## 返回坐标的全部32比特数值 ### 语法: ~~~ draw_getpixel_ext(x, y); ~~~ | 常量 | 描述 | |-|-| | x | The x coordinate of the pixel to check | | y | The y coordinate of the pixel to check | **返回:** Real ### 描述 你可以用这个函数得到目标坐标所有的 **abgr 32bit** 的值。这意味着结果由调用函数的事件,以及所使用的目标表面来决定。 ***注意:** 这个函数很慢!所以只有在必要的时候才使用。* ### 举栗子: ~~~ col = draw_getpixel_ext(mouse_x, mouse_y); alpha = (col >> 24) & 255; blue = (col >> 16) & 255; green = (col >> 8) & 255; red = col & 255; ~~~ 上述代码会给出鼠标位置的32比特颜色值,然后将他们分开并存储在不同的变量中。