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
0 answers

Skia PDF generation in windows environment

I was able to successfully compile the skia library using the below tutorial. But I'm not sure how to proceed with SKIA PDF generation . https://www.programmersought.com/article/9073691401/ Some Skia developers , Please guide me to how to use Skia…
Umeshwaran
  • 627
  • 6
  • 12
0
votes
1 answer

Importing header files and linking .a file in CMake

Trying to put Skia in my CMake project. How do I tell CMake to link my executable against libskia.a and use the header files inside ext/skia so that I can include them like so? #include My project structure is…
pixforge
  • 13
  • 2
0
votes
0 answers

BitmapFactory.decodeStream always return null

I'm facing this issue only with this url always BitmapFactory.decodeStream failed to decode bufferedInputStream I think the problem is actually from connection request but It's been two days and I'm trying to fix the issue.. Any simple help would…
midou
  • 75
  • 1
  • 5
0
votes
1 answer

SkiaSharp - how to create a hatch or dotted pattern on the filled space between curves

In SkiaSharp I can nicely fill the space between two curves by using SKPathFillType.EvenOdd. Below I show a simplified excerpt from the code. My question is how can I give a certain pattern to this filled area between the curves ? Here I can only…
0
votes
1 answer

Headless offscreen rendering with GPU acceleration in Skia or SkiaSharp

I'm doing off-screen rendering using SkiaSharp in .NET 5 (better cross-platform), and GPU acceleration is required. Note: C++ version of Skia is also acceptable if it works. The development is on Windows. I'm not using SkiaSharp.View since the…
Charlie Jiang
  • 31
  • 1
  • 8
0
votes
0 answers

skia/buildtools/linux64/gn: /lib64/libc.so.6: version `GLIBC_2.18' not found

I try to compile the library skia on a CentOS 7 machine. But when calling gn, I get this error message /lib64/libc.so.6: version `GLIBC_2.18' not found According to a quick search on Google, there is no way to get GLIB_2.18 on CentOS 7. But then,…
MrPython
  • 162
  • 1
  • 8
0
votes
1 answer

The width of Lines are rendered differently in SkiaSharp

I am using SkiaSharp in WPF to draw two lines, but the width of the lines appears to be different - the vertical line seems thicker. Is there a reason why this is happening? The version of SkiaSharp that I am using is 2.80.1.
Vahid
  • 5,144
  • 13
  • 70
  • 146
0
votes
0 answers

Device Independent Drawing

I draw line using SkiaSharp as below, on an , it works fine. But when I tested in another device with another resolution, the drawing is not on the same location I saw on my first device. How can draw using SkiaSharp in a device-independent…
Rauf
  • 12,326
  • 20
  • 77
  • 126
0
votes
0 answers

Xamarin Froms and SkiaSharp, Hightlight an Area on Image

I use the below code to show image on a from. // Row definitions here // Column definitions here
Rauf
  • 12,326
  • 20
  • 77
  • 126
0
votes
1 answer

How do I make a basic animation on Skiko (Kotlin MPP bindings to Skia)?

Using Skiko and Kotlin I want to make a basic animation: A 0 to 100 counter that automatically updates the text each second. I managed to do it, but it has a problem, it is blinking each time the window repaints. Here is the code: import…
Vidbar
  • 31
  • 6
0
votes
1 answer

How to make some parts of an image/widget transparent as shown in the screenshots

I want to make this image or widget at the end transparent with a LinearGradient gradient. Honestly I'm not entirely sure how to do this, because I only know how to make the entire image/widget transparent with the Opacity widget. Can someone help…
Christian X
  • 1,919
  • 1
  • 15
  • 21
0
votes
0 answers

Can I check SkSL bundle engine version with Flutter?

I have recorded SkSl script to warmup shaders. I use this build option to apply it for my Flutter app's release builds: flutter build appbundle --release --bundle-sksl-path flutter_01.sksl.json It works great, but it stops work when new Flutter…
Mol0ko
  • 2,938
  • 1
  • 18
  • 45
0
votes
0 answers

SkiaSharp SKPaint causes AccessViolation Error

I am accessing the SKCanvas of an SKSurface in my PaintSurface function. This function fires and I get the error: System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is…
0
votes
2 answers

Is there a simple way of handling (transforming) a group of objects in SkiaSharp?

In a nutshell, let's say, I need to draw a complex object (arrow) which consists of certain amount of objects, like five (or more) lines, for instance. And what's more important, that object must be transformed with particular (dynamic) coordinates…
Agat
  • 4,577
  • 2
  • 34
  • 62
0
votes
1 answer

Align UI lements correctly in SkiaSharp (UWP)

I am trying to align a few buttons in a circular manner using SkiaSharp. My code looks like this Code behind private void Test_OnPaintSurface(object sender,…
None
  • 5,582
  • 21
  • 85
  • 170