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

How to build & link the Skia library for unity

Skia is a graphics library (skia.org). The documentation explains how to build the library after cloning the project via git. But the documentation is unclear as of this date, How to build & link the Skia library for unity
1
vote
0 answers

Debug flutter console fills up with random error messages

Sometimes, when I reload the app or restart it, I see a lot of messages like this in the debug console: " D/skia ( 7858): Shader compilation error D/skia ( 7858): ------------------------ D/skia ( 7858): Errors: D/skia ( 7858): " What…
Alexandru Stroescu
  • 1,067
  • 1
  • 9
  • 16
1
vote
1 answer

How can I tell the amount of space needed for a Skia dropshadow

Note: Since I am using SkiaSharp I will be posting code in C#; however, I suspect that conceptually this applies to Skia in any language/environment. Summary I am rendering a Skia object to a canvas of a given size. I would like the canvas to be…
Victor Chelaru
  • 4,491
  • 3
  • 35
  • 49
1
vote
0 answers

Can I render Shaders in the Skia Debugger?

Currently, whenever I try to open a Flutter screenshot (.skp file) in the Skia Debugger, all shaders are just rendered as black, i.e. they are effectively not being rendered. This is somewhat annoying because I can also not see what is drawn below…
creativecreatorormaybenot
  • 114,516
  • 58
  • 291
  • 402
1
vote
2 answers

How to convert SkiaSharp.SkBitmap to Android.Graphics.Bitmap?

I want to convert PinBitmap (SkiaSharp.SkBitmap) to Android.Graphics.Bitmap. I couldn't find online references, I only tried this in the Android project: Android.Graphics.Bitmap bitmap = BitmapFactory.DecodeByteArray(myView.PinBitmap.Bytes, 0,…
mshwf
  • 7,009
  • 12
  • 59
  • 133
1
vote
0 answers

SkiaSharp basic animation speed different on different screen sizes

I'm trying to make a very basic animation with SkiaSharp in Xamarin. Basically a small point spinning in a circle. A basic Timer does the job, however i can't keep a consistent speed for the animation across different devices. The speed of the…
Elias Johannes
  • 694
  • 2
  • 7
  • 26
1
vote
1 answer

SkiaSharp ConicTo Method does not draw a curve

I am new to SkiaSharp canvas and want to achieve the canvas shown below. I have tried using the below code for achieving the canvas but failed. SKSurface vSurface = args.Surface; SKCanvas vCanvas =…
govind kumar
  • 205
  • 4
  • 12
1
vote
1 answer

How to Build Skia on Windows

I have not yet been able to successfully build skia from source code on Windows 10. I am going in circles at this point. I followed the official instructions here https://skia.org/user/build but always get errors. gn args…
ScottS
  • 11
  • 2
1
vote
1 answer

How to compile HelloWorld application included in skia?

How do I compile skia HelloWorld program? I went through this guide - it doesn't mention how to build example/HelloWorld The version I have checked out is: c7b263b603107acdb16b6570989e1ce5a2c7eb4e I see mentions of it inside the .gn files but I am…
wmercer
  • 1,102
  • 2
  • 11
  • 24
1
vote
0 answers

Skia: Rendering text to OpenGL texture

I have an OpenGL application in which I want to render text using Skia. Specifically, I want to render the text into a texture, and use the texture in my code later on. auto context = GrContext::MakeGL(); auto info =…
nihohit
  • 498
  • 3
  • 23
1
vote
1 answer

Flutter UI is broken first screen

I have this UI issue when opening the build (on a device) made from a flutter project and I don't event know where to begin. I observe this issue every time I reopen the app on the screen that starts. If a UI render comes along (push/flip to…
Durdu
  • 4,649
  • 2
  • 27
  • 47
1
vote
1 answer

Skia error when trying to retrieve a bitmap downloaded from Google Sign-in

So, I am downloading the profile picture from the Google SIgn-in api and I save it to a hidden file. The problem is that when I try to retrieve it, it throws me: D/skia: --- Failed to create image decoder with message 'unimplemented'. However when I…
TheBatz
  • 115
  • 2
  • 12
1
vote
2 answers

ImageView RecyclerView Lazy Load

I have a RecyclerViewAdapter which in onBindViewHolder, I make an AsyncTask call to download the image required from Google Cloud Storage. There are some items in the RecyclerViewAdapter which call for the same image. I tried to deal with this by…
Rafiq07
  • 37
  • 1
  • 11
1
vote
2 answers

Skia C++ VS2015 project setup

I'm trying to create a simple windows application using Skia and C++ on visual Studio 2015. I believe I have created static, shared and release versions of skia.lib, and have linked to the proper include folders. But now I still get many errors,…
Beeple
  • 11
  • 3
1
vote
1 answer

Perspective Transform in Skia

I have a quadrilateral, the coordinates of which are known. I need to do a perspective transform and warp an image to those coordinates using Skia. I have referred to the links in Skia's page like…
AUser123
  • 651
  • 1
  • 7
  • 21