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

Compiling Aseprite from source code. Problem with compiling skia library

Im trying to compile Aseprite from github's source code. When I type in console: gn gen out/Release --args="is_official_build=true skia_use_system_expat=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false…
0
votes
1 answer

Using skia to draw vs using android canvas

I am trying to make a app where i want to draw small detailed boxes that look like crossword and the user should be able to interact with them. So my question is are there any advantages to using Skia to draw on the skia canvas instead of using the…
Ivan
  • 557
  • 1
  • 3
  • 14
0
votes
0 answers

Rendering multi character emoji in SkiaSharp

I am rendering emoji in SkiaSharp and have been able to get it to work correctly for simple emoji (like or ) but not more complex emoji (like or ‍). The trickiest part was setting the correct typeface containing the emoji since there is no support…
Harlan
  • 141
  • 8
0
votes
0 answers

dlopen failed: cannot locate symbol "_ZN11SkJpegCodec6IsJpegEPKvj" referenced by libmyskia.so

I am trying to build skia for android using the master branch. But I got the following error: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN11SkJpegCodec6IsJpegEPKvj" referenced by ".../libmyskia.so"... at…
0
votes
1 answer

unable to put stamp using itext7 using Java lanaguage on only skia generated pdf (shows inverted stamp)

I am unable to put stamp using itext7 using Java language on only skia generated pdf (skia is pdf library used by google; if someone has worked on google docs-> Clicks on Print -> Save as Pdf ). It Stamps incorrectly; if I stamp at top left…
Sameer
  • 1
  • 2
0
votes
0 answers

Arabic text rendering with Skia (SkiaSharp)

I'm rendering text with SkiaSharp for various platforms. I have problem with arabic script. I've created simple shaping routine and I have nicely connected glyphs. But diacritics is off completely. Is there an easy way how to render/position…
Michal Dobrodenka
  • 1,104
  • 8
  • 27
0
votes
0 answers

crashs on android L when load so

I have a skia shared library generated from skia source code, i want use it to draw something in my cpp file. This project runs well on android M and N, but it crashed on android L. This is my CMakeList.txt cmake_minimum_required(VERSION…
leege 100
  • 1
  • 1
0
votes
1 answer

How to avoid "adding up" of opacities in SkiaSharp

I'm currently creating a Xamarin.Forms app. One of my pages uses SkiaSharp to allow users to highlight parts of an image in a text marker style (i.e. a yellow brush with low opacity). This is how the related SKPaint object is defined: var…
japhwil
  • 299
  • 4
  • 16
0
votes
0 answers

offscreen buffer blending from saveLayer( ) in skia

having a doubt about saveLayer() from the doc, saveLayer(nullptr, nullptr) would allocate an off-screen buffer and later it's composited back to original buffer when restore() is called. How is that blended? is there a default blending mode for this…
Solti
  • 633
  • 2
  • 6
  • 17
0
votes
1 answer

Convert System.Drawing.Pen to SkiaSharp Type

i have an old asp.net project which uses heavily system.drawing types. But for performance reasons (process wide locking etc.) i will switch to skia/skiasharp. As a first migration step i am looking for a way to convert Pens, Brushes and Fonts to…
Saftpresse99
  • 849
  • 7
  • 16
0
votes
0 answers

SkiaSharp draw image

I'm working on a xamarin application. In this application i need to draw a picture taken by the phone and draw on it. For the draw of the picture and every thing else i use SkiaSharp. I got a problem to draw my picture : When i draw it the rotation…
Sagon nicolas
  • 198
  • 3
  • 23
0
votes
0 answers

Blending Performance in Skia

I am developing a vector drawing app for Android and using Skia to render the vector paths. I have an illustrator kind of setup where there can be some predefined number of layers with different blending method for each. I have an internal library…
nikhil
  • 9,023
  • 22
  • 55
  • 81
0
votes
1 answer

Skia SkCanvas cannot be constructed with SkBitmap

I have a draw(SkCanvas* canvas) function. In main() I write: SkBitmap myBitmap; myBitmap.allocN32Pixels(640, 480); SkCanvas *myCanvas(&myBitmap); draw(myCanvas); But Visual Studio generates this error: "a value of type "SkBitmap *" cannot be used…
Aurlito
  • 21
  • 6
0
votes
0 answers

Using IXpsOMObjectFactory on Windows 10 Mobile

I am busy porting an app to UWP, but I am coming across an issue with XPS support on Windows 10 Mobile. When creating an instance of IXpsOMObjectFactory with the ID of CLSID_XpsOMObjectFactory, it gives me the return value of…
Matthew
  • 4,832
  • 2
  • 29
  • 55
0
votes
1 answer

What is BW stands for in Skia maskformat?

I tried search everywhere, but can't find what is BW stands for. Here is the link: https://developer.xamarin.com/api/type/SkiaSharp.SKMaskFormat/ thanks a lot.