Questions tagged [skia]

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

Skia is a key part of several shipping products, including chromium, and as such will continue to track those projects' needs and priorities. However, Skia is also a general purpose graphics engine.

Features include:

  • 3x3 matrices w/ perspective
  • antialiasing, transparency, filters
  • shaders, xfermodes, maskfilters, patheffects
  • subpixel text

Device backends for Skia currently include:

  • Raster
  • OpenGL
  • PDF
  • XPS
  • Picture (for recording and then playing back into another Canvas)

Ports include:

  • Android
  • Windows
  • Macintosh
  • Linux

More information available at

  1. http://code.google.com/p/skia/
  2. http://en.wikipedia.org/wiki/Skia_Graphics_Engine
319 questions
0
votes
1 answer

UI glitches on some of devices while linear data chart display in react native - react-native-echarts library (eCharts)

We are using @wuba/react-native-echarts to display eCharts in our react native app. Problem that we noticed is that on some devices with Android, charts are glitchy (image below). Here is a code: import { List } from "linqts"; import { SVGRenderer,…
0
votes
0 answers

Cannot create a swap chain for 'TCanvasD2D' in Delphi FMX App

I've developed a simple app in Delphi FMX, but occasionally very randomly I get this error in my application. It doesn't happen often, but does happen every now and then: I then simply click on "OK" and continue as normal on the app. It doesn't…
Shaun Roselt
  • 1,650
  • 5
  • 18
  • 44
0
votes
3 answers

PNG to TBitmap (preserving transparency)

I use Delphi 10.3.3 VCL. I want to load a PNG image, convert to TBitmap (in order to make some modifications), then save it as PNG. I use this code, but it loses transparency. Transparent background becomes black. var InputPNG: TPngImage; …
Xel Naga
  • 826
  • 11
  • 28
0
votes
0 answers

react-native-svg align items in a radius view

I'm creating analog watch in react native with react-native-svg. I've managed to create the watch but I'm having issues with aligning the watch numbers to the hour marker and make the space even between the markers and numbers. Here's an…
0
votes
0 answers

Print a rotate text with Skia4Delphi

How can I rotate a text using the TSKPaintBox? My goal is to print a text rotation of 45°. I searched on the skia4delphi examples, but I didn't find anything.
0
votes
0 answers

How to handle live animations in React Native Skia

I'm working on an IoT product where users can record ECG's on a small device. This device connects via Bluetooth to a React native application that allows them to view past ECG's, and to watch their ECG graph appear live as they are taking them. For…
Eric Hasegawa
  • 169
  • 1
  • 14
0
votes
0 answers

Render Swing UI on top of Skiko panel

I want to write a game with Skiko, using Swing for the UI. I assume I need to render a transparent JPanel on top of another JPanel running the Skiko renderer. I'm new to Swing in general so I'm not really sure where to even start. I have Skiko…
chrispytoes
  • 1,714
  • 1
  • 20
  • 53
0
votes
1 answer

Building Skia4Delphi with PowerShell error

I'm trying to build Skia with PowerShell, but it's returning a error... > PS D:\Componentes_Delphi\skia\skia> .\sk4d-build --targets win32 > INFO: Building for Win32. > ERROR: Unable to generate build files for Win32 target: ERROR at…
missingNO
  • 29
  • 3
0
votes
0 answers

Reanimated Animates Only On Window Resize Skia Web

My animations only happen when I resize my window. I am using Reanimated ~2.14.4 and React Native 0.71.3. Skia Web on React Native Web using Expo Router. Perhaps there is a mistake in my setup? Here is a GitHub Repo to demonstrate my issue. Here is…
0
votes
0 answers

Performance problems with SKIA Sharp encoding

I'm using SKIA Sharp to generate some images, however when profiling the encoding part takes in my opinion way too long. The image has about 10-100 points, 30-140 lines in polygons and 2-20 rectangles (nothing really fancy). The total image…
rst
  • 2,510
  • 4
  • 21
  • 47
0
votes
0 answers

what is the skia version in chromium. how can i get the information

the README.chromium in chromium src is Name: Skia URL: https://skia.org/ Version: unknown Security Critical: yes License: BSD so i want to konw how can i know the exactly version of skia. like chrome/xx? search but can not find the detial
BirdQAQ
  • 3
  • 1
0
votes
0 answers

skia demo crash on MacOS, SkSurface::MakeRasterN32Premul is abnormal

i use skia as a static lib on macos, refer to How to link the Skia library for a C++ project with Xcode but when is use SkSurface::MakeRasterN32Premul, i got an error, i pass width(100) and height 200 to it, but MakeRasterN32Premul print a strange…
Mr. T
  • 1
0
votes
0 answers

How to build Skia for Android with SVG support

I'm trying to build Skia for Android and followed the documentation here. Eventually I ended up using this configuration: bin/gn gen out/arm64 --args='ndk="../Android/sdk/ndk-bundle" target_cpu="arm64" is_component_build=true is_official_build=false…
Sarpe
  • 5,747
  • 2
  • 28
  • 26
0
votes
0 answers

How to integrated SVG into skia on WASM?

It is normal for me to use modules/svg to render svg in macos, but when I compile the code into wasm, SkSVGDOM is undefined, how to integrate modules/svg into wasm? I found the same problem, is it still not…
0
votes
0 answers

Undefined is not an object (evaluating 'prevDeps.length') using react-native-skia

I created a donut chart components (DonutChart) that takes an array of values representing percentages. The values are derived from data gathered from a firestore db. When running this: Warning: React has detected a change in the order of Hooks…