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
1 answer

Building skia on ios simulator successfully,but cannot run on my iphone

everyone. I have done that skia running on ios simulator.But cannot run on my iphone.It stopped here. #if defined(__x86_64__) || defined(_WIN64) /* All x86_64 machines have SSE2, so don't even bother checking. */ static inline bool…
Domlin
  • 185
  • 1
  • 12
1
vote
1 answer

how to build skia for ios

I try to bulid skia on ios.And I down load it then run SampleApp on the mac os.So I want to use it on ios.But when I open the xcodeproj,there are so many files unexits in the project!So what can I do with it and How to build skia for ios?? Thank you…
Domlin
  • 185
  • 1
  • 12
1
vote
2 answers

Unable to load JPEG-image with BitmapFactory.decodeFile. Returns null

I'm making an app that show a lot of images that are generated from PDF-files by Imagemagick. Some of the images, can't be loaded with BitmapFactory. It simply returns null istead of a bitmap. The log says: D/skia(15101): --- decoder->decode…
Niels
  • 1,026
  • 9
  • 17
1
vote
0 answers

Ideas on the Limits of BitmapRegionDecoder

Recently I have started running into memory issues with BitmapRegionDecoder. Odd, yes, as it is designed to only read parts in and those parts I want are usually 100-200 pixels by 100-200 pixels. My question is: where are the limits on the size of…
jdeloach
  • 71
  • 1
  • 1
  • 4
0
votes
0 answers

A way to detect touch on text that was drawn using SkiaSharp

I have a custom control I am working on that uses SkiaSharp to draw some text, While that is working flawlessly the issue I am facing is to find which specific drawn text was Touched. What I am trying to create is similar to a JumpList, which is…
FreakyAli
  • 13,349
  • 3
  • 23
  • 63
0
votes
0 answers

skia failed to follow build instructions

I am trying to build skia on windows platform and I am following official skia buid guide. So what I have done till now: I downloaded visual studio 2019 with microsoft clang compiler via vs installer then I obtained depot_tools unzipped them and…
olaf
  • 51
  • 9
0
votes
1 answer

has someone tried fully Skia as renderer for React Native?

I wonder has anyone or team tried fully use Skia to render all components with React? Kind of of doing what Flutter is doing but with JS + React. I know this may not make sense as you may think "just use Flutter", my point is to know why it doesn't…
Mars
  • 873
  • 1
  • 11
  • 24
0
votes
0 answers

Questions about mouse pointer event listener in GUI

I'm trying to write a gui, as it will be drawn by skia or cairo, I know that they are used to draw GUI elements only and have nothing to do with receiving events, so I will use another library for that. I wanted to know: How to detect whether the…
0
votes
0 answers

SkiaSharp causes access violation with multiple contexts on Windows

I'm making a frontend for the Mupen64Plus emulator with support for custom scripts that can draw over its video output. However, my implementation seems to segfault on Windows (it doesn't on Linux, for some reason.) This MVE mimics the system I use…
itzjackyscode
  • 970
  • 9
  • 27
0
votes
1 answer

python skia save skia.DynamicMemoryWStream to svg file

in short, the following code can give the context: import skia stream = skia.DynamicMemoryWStream() ... There are more operations done over the stream variable, but they are not important and the key thing here is I want to convert the stream to an…
Rui
  • 49
  • 1
  • 10
0
votes
1 answer

Apply contrast to images using C# and SkiaSharp

I'm trying to apply some image enhancements using C# and SkiaSharp, but the documentation isn't clear. I couldn't find how to apply contrast using SkiaSharp. I'm using Emgu.CV to, but I couldn't find Matrix convolution using Emgu so I'm trying to…
0
votes
0 answers

Skia SkRegion::setPath failed

I have a SkPath [dispPath] with verbs: 1st is moveto, others are lineto {5118.000000 -16592.400391} {5115.399902 -16591.400391} {5112.200195 -16590.201172} {5109.600098 -16588.201172} {5108.399902 -16585.400391} {5108.399902…
Zheyuuu
  • 151
  • 1
  • 12
0
votes
0 answers

Why does Flutter ship the Skia engine despite using AOT compilation to native code?

I'm currently exploring Flutter's architecture and compilation process, and I'm a bit puzzled by the presence of the Skia engine even when Flutter uses AOT (Ahead-of-Time) compilation to generate native machine code. As far as I understand, AOT…
Ahmed Ibrahim
  • 681
  • 8
  • 12
0
votes
1 answer

I want to draw a path on the given image using @shopify/reactnative-skia and then save the drawn part into an image

I want to draw a path on the given image using @shopify/reactnative-skia and then save the drawn part into an image as a clip but its not getting the correct clip image, here is the sample code; const surface = Skia.Surface.MakeOffscreen( …
Rameez Raja
  • 65
  • 1
  • 9
0
votes
0 answers

Error: Native RNSkia Module cannot be found! Make sure you correctly installed native dependencies and rebuilt your app., js engine: hermes

Hello everyone im trying to use RNSkia with expo go. After doing some research I found out its integrated now with expo-go. Also cant find anything in the docs for extra configuration Im using: "expo": "~48.0.6", "@shopify/react-native-skia":…
Strike
  • 77
  • 1
  • 7