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

Why harfbuzz shape 2 single char into one glyph?

i'm new to both skia and harfbuzz, my project rely on skia to render text(Skia rely on harfbuzz to shape text.). So, if i try to render text "ff" or "fl" or "fi"(or maybe some other combinations idk.), instead of render 2 "f", skia will render one…
0
votes
1 answer

How to Build Skia in Mac OS

I'm beginner to Skia. So Just tried to build Skia in my machine ( macOS High Sierra 10.13.6 ). I just followed the instructions Build. Downloaded depot_tools Downloaded Skia from git bin/gn gen out/Static --args='is_official_build=false' python2…
karan
  • 1
  • 1
0
votes
1 answer

Extract text from pdf file genrated by chrome's print option using pypdf2

Trying to extract text from pdf file/s using python(v 3.8.2) module pypdf2(v 1.26.0). All good except with particular pdf file/s(generated from chrome print option.) I have these files over the period that I have generated/downloaded using chrome's…
Vishal
  • 3
  • 2
0
votes
0 answers

How to draw A smooth line graph in SkiaSharp?

Say, I have an array of float points (function xy). The first image is trying with SkiaSharp, the second is with System.Drawing of .NET Framework. I understand that I should use a method like CubicTo, but I don't see how to combine it to achieve the…
Sith2021
  • 3,245
  • 30
  • 22
0
votes
0 answers

Replace already drawn bitmap on SK Canvas at particular point

I wanted to update the existing bitmap drawn >@particular coords> on SK Canvas, while calling InvalidateSurface am able to draw but the previous bitmap is not clearing. New Image is beneath the older one! Canvas.Clear(0) didn't clear all previous…
Tech Cruize
  • 107
  • 1
  • 2
  • 16
0
votes
0 answers

Rendering a grid of tiles with SKCanvasView

I have a grid of tiles (200 across and 200 down). I want to display them on the screen within the screen viewport and let the user scroll with their finger to move the tiles around. There would only be 3-4 tiles displayed on either axis at any…
Dan
  • 115
  • 1
  • 8
0
votes
1 answer

How to fix Jank within GridView and AnimationBuilder?

I have some performance issues after implementing a GridViewBuilder that shows images fetched from firebase: Usual performance during scroll Janky performance during scroll I've observed similar issues when using an AnimationBuilder with more…
CCore
  • 41
  • 4
0
votes
2 answers

Build errors with Ninja and Skia. Unable to find icudtl.dat even though the file exists

Anyone know why i'm getting this error? [1/2620] copy ../../third_party/externals/icu/common/icudtl.dat icudtl.dat FAILED: icudtl.dat python E:/Development/c++/skia/skia/gn/cp.py ../../third_party/externals/icu/common/icudtl.dat…
0
votes
0 answers

How to add image-manipulating route transitions to Flutter

I'm trying to create a custom route transition using Flutter. The existing route transitions (fade, scale, etc) are fine, but I want to create screen transitions that manipulate the screens' content by capturing their render and applying effects to…
zeh
  • 10,130
  • 3
  • 38
  • 56
0
votes
1 answer

How to generate a skp file from SkPicture, in skia?

In skia, we can use SkPicture to record draw commands and then playback it, it works well. I am wondering if there is some ways to generate a skp file from the SkPicture, so that I can use debugger.skia.org to analyze the draw commands. I know ,…
0
votes
2 answers

fatal error: GL/glx.h: No such file or directory libgl1-mesa-dev already installed

I'm trying to compile skia to compile aseprite on Ubuntu 19.10, I keep getting the error c++ -MMD -MF obj/src/gpu/gl/glx/gpu.GrGLMakeNativeInterface_glx.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0…
Noah Burck
  • 1
  • 1
  • 1
0
votes
1 answer

SkParagraph not shaping or rendering text

I compiled skia for macosx using cmake. Everything works except SkParagraph. Can render using canvas->drawString. Compiles and runs fine but does not wrap or show any text. Am I missing something while compiling skia? This is what I tried, …
ratj
  • 86
  • 1
  • 6
0
votes
1 answer

Can't build a Skia module (SkPlainTextEditor)

I'm trying to build Skia's modules/skplaintexteditor: https://chromium.googlesource.com/skia/+/master/modules/skplaintexteditor/ I have followed the instructions in README.md: tools/git-sync-deps bin/gn gen out/default ninja -C out/default…
Neat
  • 96
  • 5
0
votes
1 answer

Unable to find an entry point named 'sk_color_get_bit_shift' in DLL 'libSkiaSharp'. when using SkiaSharp 15.9.1

I am attempting to build and use the MicoCharts project available here: https://github.com/dotnet-ad/Microcharts which is dependant on this SkiaSharp project available here: https://github.com/mono/SkiaSharp The specific version I am attempting to…
Zivodor
  • 1
  • 1
0
votes
1 answer

Xamarin forms Dotted Cirlce using Skia Sharp

How can we create a dotted circle in xamarin forms using Skia Sharp, i had tried many but i could not make it happen can some one help me with this. SKImageInfo info = args.Info; SKSurface surface = args.Surface; SKCanvas…