Skip to main content

Questions tagged [skia]

Skia is a complete C++ 2D graphics library for drawing text, geometries, and images.

skia
0 votes
0 answers
16 views

How to enforce Skia to use float texture rather than half?

When I attempted to port a Metal shader from iOS, I tried rewriting the shader in SKSL and running it on iOS. The program compiles and runs, but there are some precision issues. After debugging with ...
demonguy's user avatar
  • 2,007
0 votes
0 answers
25 views

CanvasKit's MakePicture method returning null

I am reading a .skp file in javascript as ArrayBuffer. Then trying to convert it into picture by using CanvasKit's [MakePictue] method. But picture is null. I have verified in https://skia.org/docs/...
Steven's user avatar
  • 1
0 votes
0 answers
25 views

Memory issue when using toCmds method in canvaskit-wasm library

I'm developing a 2D graphics rendering application in a web page using the canvaskit library (https://www.npmjs.com/package/canvaskit-wasm). I've encountered a confusing issue when creating path ...
Sugar's user avatar
  • 140
0 votes
0 answers
27 views

Suggestions for creating a pixel art editing component for my app using using React Native

I'm a beginner in React Native and I have created a pixel art editor component for my application, but it is not as fast as I would like. The problem is that when the user drags their finger across ...
star2k1's user avatar
0 votes
2 answers
160 views

Skia drawSimpleText() not rendering text

I copied a piece of tutorial code to my project, trying to see if it works fine on my computer. However, it renders everthing except the text. My OS is Windows 11 and IDE is Microsoft Visual Studio ...
Maestro Maestro's user avatar
1 vote
1 answer
157 views

Shader transitions on an Image (on press) with react-native-skia

I'm pretty new to react-native-skia, I have a grayscale shader applied on an Image and I would like to apply this kind of transition animation on press to switch between grayscale and full colored ...
HichamELBSI's user avatar
  • 1,721
0 votes
0 answers
25 views

Does trace.json generated with flag --disabled-by-default-skia contain all SKIA commands used by the browser?

While loading a page in Chromium, I am generating trace.json with the flag --disabled-by-default-skia I see many SKIA commands logged in the file in this category like so {"args":{},"...
Steven's user avatar
  • 1
1 vote
1 answer
79 views

How do you load a lottie file to TSkAnimdatedImage in FMX?

I want to show a lottie animation file in a TTSkAnimatedImage in FMX. How do you load a lottie file to TSkAnimdatedImage in FMX? With a normal TImage, I can simply load it with the MultiResBitmap or ...
Martin Kakhuis's user avatar
-1 votes
1 answer
114 views

Recalculate/Draw SVG paths on canvas with Skia in Delphi?

Are there built in functions in skia for a canvas or something I should use to recalculate my paths when a user resizes the form or do I need to create the functions and calculations myself? I am new ...
Martin Kakhuis's user avatar
0 votes
0 answers
42 views

What's the best way to implement scroll in an TSkPaintbox?

What's the best way to implement a scrollbar in an TSkPaintbox? Do I create a separate canvas and just show a portion? Or just draw on the canvas with an offset? Or is there a better way? I am new to ...
Martin Kakhuis's user avatar
0 votes
0 answers
70 views

How can I get a monochrome version of an image?

Is there a possibility to transform a bitmap into a monochrome bitmap image using Skia? I am new to the Delphi programming language and Skia framework, but I understand that this is somehow possible ...
Martin Kakhuis's user avatar
0 votes
0 answers
73 views

Is there a way to compare a drawing with an SVG in React Native Skia?

I'm making an app where you need to draw a given SVG above, in Expo, React Native. Is there a way to compare the SkPath array with my svg? Here is the component I use for my drawing (most of the code ...
feusanc's user avatar
  • 11
0 votes
0 answers
50 views

error NU1101: Unable to find package Telerik.Drawing.Skia.Trial. No packages exist with this id in source(s)

se agrego la definicion con sus credenciales esto funcionaba correctamente pero recientemente ya no puede obtener las dependencias Local resources cleared. Determining projects to restore... D:\\a\\1\...
Walter Raul Canchan Hermoza's user avatar
0 votes
0 answers
70 views

Get Skia Commands from Chromium DisplayItemList

Please suggest how can I intercept or extract SKIA commands from a running Chromium instance so that same can be replayed on another browser. Saw this in another thread asking the same problem How to ...
Steven's user avatar
  • 1
0 votes
0 answers
85 views

How to animate the backdrop blur clip (Skia), using react native reanimated

Okay, since last night I'm trying animate the clip from backdrop blur. Actually it works transform the entire component, something like that: const backdropBlurClip = useMemo( () => rrect(rect(...
Jose Carlos Filho's user avatar

15 30 50 per page
1
2 3 4 5
24