Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix readpixels #9900

Merged
merged 5 commits into from
Dec 30, 2021
Merged

fix readpixels #9900

merged 5 commits into from
Dec 30, 2021

Conversation

zhakesi
Copy link
Contributor

@zhakesi zhakesi commented Dec 29, 2021

1] 修复高度设置错误
2] 添加接收像素buffer参数

@github-actions
Copy link

github-actions bot commented Dec 29, 2021

Interface Check Report

! WARNING this pull request has changed these public interfaces:

@@ -15957,10 +15957,11 @@
          * @param x 起始位置X轴坐标
          * @param y 起始位置Y轴坐标
          * @param width 像素宽度
          * @param height 像素高度
+         * @param buffer 像素缓存
          */
-        readPixels(x?: number, y?: number, width?: number, height?: number): Uint8Array | null;
+        readPixels(x?: number, y?: number, width?: number, height?: number, buffer?: Uint8Array): Uint8Array | null;
     }
     /**
      * @en The script asset base class
      * @zh 脚本资源基类。

@SantyWang SantyWang merged commit a2bb27f into cocos:v3.4.1 Dec 30, 2021
@zhakesi zhakesi deleted the v3.4.1-readpixels branch February 11, 2022 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants