Replies: 2 comments 2 replies
-
For our test suite we use this library to get pixels from png: https://www.npmjs.com/package/pngjs |
Beta Was this translation helpful? Give feedback.
2 replies
-
there is a readPixels method available now
…On Thu 25 Apr 2024 at 17:28, Muhammad Usman ***@***.***> wrote:
Hi @vicoderr <https://github.com/vicoderr>, were you able to get the
pixel value using pngjs shared by @wcandillon
<https://github.com/wcandillon>. Thank you
—
Reply to this email directly, view it on GitHub
<#1095 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVTVCCW4LUXCHGG6JXLY7EOKHAVCNFSM6AAAAAASASNW7WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TEMRWHAYDE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! React Native Skia is very amazing framework!
The question is:
Can I get some Pixel Area from Image or form Canvas? This is needed quite often!
For example:
const image = useImage(require("../../assets/oslo.jpg"));
const part_of_image = getPixels( image, {x: 100, y: 100, width: 100, height: 100} );
or for Canvas:
const image = ref.current?.makeImageSnapshot();
const part_of_image = getPixels( image, {x: 100, y: 100, width: 100, height: 100} );
thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions