Replies: 2 comments 2 replies
-
That's a fantastic question, do you know apps that implement such an effect? I would love to take a look. Your best bet at the moment would be to use a Runtime Shader for that: https://shopify.github.io/react-native-skia/docs/image-filters/runtime-shader/ Note that RutimeShader doesn't allocate the bitmap with the Pixel Ratio. You will need to scale to the pixel Ratio and then divide the Result with the pixel ration: <Group transform={[{ scale: 1 / PixelRatio.get() }]}>
<Group
layer={<Paint>
<RuntimeShader source={source} uniforms={uniforms} />
</Paint>}
transform={[{ scale: PixelRatio.get() }]}
>
<Fill color="blue" />
<Circle />
</Group>
</Group> |
Beta Was this translation helpful? Give feedback.
-
You can use the Magnifying Glass example: |
Beta Was this translation helpful? Give feedback.
-
Hi!
I have to make a magnifying glass in my project. Is it possible to get a Canvas area in Skia and display it separately enlarged?
Example:
Beta Was this translation helpful? Give feedback.
All reactions