mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 01:19:18 +08:00
Merge branch 'master' of https://github.com/LmeSzinc/AzurLaneAutoScript
This commit is contained in:
@@ -247,7 +247,7 @@ class LDOpenGLImpl:
|
|||||||
|
|
||||||
img = ctypes.cast(img_ptr, ctypes.POINTER(ctypes.c_ubyte * (height * width * 3))).contents
|
img = ctypes.cast(img_ptr, ctypes.POINTER(ctypes.c_ubyte * (height * width * 3))).contents
|
||||||
|
|
||||||
image = np.ctypeslib.as_array(img).reshape((height, width, 3))
|
image = np.ctypeslib.as_array(img).copy().reshape((height, width, 3))
|
||||||
return image
|
return image
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user