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

How can I build Skia for iOS?

I try to build skia for iOS. The newest version is not supported by the gyb builder. How else can I build skia for iOS? I have tried to use CMake and imported the project into XCode. But this approach did not work.
0
votes
1 answer

I got skia native crash when return ~SkSpriteBlitter()

I got skia native crash when return ~SkSpriteBlitter(), below is the tombstone and stack trace. Does anyone get this issue before? [tombstone] signal 11 (SIGSEGV), fault addr 00000000 r0 bec3a434 r1 ab248078 r2 ab248080 r3 ab2494dc r4 bec3a558 …
snakelee
  • 1
  • 2
0
votes
1 answer

how to reduce libskiasharp.so size?

I try to use skiasharp to develop xamarin forms app, then I found the apk file is too big in android platform. I take a look at the apk file and it looks like the libSkiaSharp.so is too big. Is there any way to reduce the size of…
0
votes
1 answer

Trouble building Skia on Mac OSX

I have followed the instructions given on how to build Skia on Mac. Instructions on building Skia on Mac However, I get the error: ninja: error: '../../third_party/externals/libjpeg-turbo/simd/jccolor-sse2-64.asm', needed by…
amortaza
  • 364
  • 1
  • 14
0
votes
0 answers

Visual studio not copying native DLL for designer

I've been using SkiaSharp (a C# wrapper around Google's Skia vector graphics library) with success until today. I am using Visual Studio 2015 Community. I have a Winform that contains a custom control that uses SkiaSharp to paint itself. Everything…
tdenniston
  • 3,389
  • 2
  • 21
  • 29
0
votes
1 answer

in Skia, convert rgba raw data to a skBitmap

Say if I have a rgba frame raw data in memory, is there a way to convert it to a skBitmap? so that I can use other skia operation to draw on this frame. This case is using C++. Thanks. :)
Solti
  • 633
  • 2
  • 6
  • 17
0
votes
2 answers

How to draw with Skia on Cairo context in Gtk3

I'm expecting to get colored rectangle, but getting rectangle of garbage instead. So far I have the following code: using System; using GLib; using SkiaSharp; using Gtk; namespace SkiaSharpExample { class CCDrawingArea : DrawingArea { …
Darius Kucinskas
  • 10,193
  • 12
  • 57
  • 79
0
votes
1 answer

Embed skia canvas in NSView and HWND, canvas flushed as blank when window resize

I'm trying to embed skia canvas into NSView and HWND to do some cross platform drawing. I'm using the class SkView comes with the skia source code, and use SkOSWindow as the window. But the window got blanked when the window is resizing. As showing…
Zhiqiang Li
  • 401
  • 7
  • 16
0
votes
1 answer

How to Build Skia library Project with VS2012

Thank you for reading my question. I want to build skia library using VS2012, but skia's master branch support only vs2013 or higher version. I tried to search old revision that can be builded with vs2012, but I cannot search that version. please…
235354
  • 1
  • 1
0
votes
1 answer

Why can't I render onto a Skia canvas holding a 8 bit Grayscale bitmap

I am trying to do some basic drawing with skia. Since I'm working on grayscale images I want to use the corresponding color type. The minimal Example I want to use is: int main(int argc, char * const argv[]) { int width = 1000; int heigth…
DanielK
  • 11
  • 3
0
votes
1 answer

Looking for reasons why Bitmap.decodeResource using resourceId would return null

In my GridView adapter I'm trying to efficiently load images so I've been using Picasso 2.5.2 (which allows for loading by resource id). Picasso.with(mContext) .load(resId) .noFade() .resize(newSize,…
Conti
  • 1,017
  • 1
  • 11
  • 15
0
votes
0 answers

SkImageDecoder::Factory returned null when retrieving complex object

I am working on an Android project in which I am retrieving a list of Person's and trying to display them. The Person class contains the profilePhoto as String and I am able to see it saved in DB, after retrieving a List of Person, I am able to…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
0
votes
0 answers

Understanding VML shadow matrix

I am working on a MS-Word rendering tool for Android. I need to render shadows for vml shapes. Microsoft's documentation on shadow matrix is not very clear and I couldn't find detailed explanation on vml shadow matrix on the web. According to…
Bala
  • 1
  • 3
0
votes
1 answer

alternative to get getAdvancedTypefaceMetrics

As getAdvancedTypefaceMetrics of SkTypefce is now private, In my old code it is using in below format. int FontPlatformData::emSizeInFontUnits() const { if (m_emSizeInFontUnits) return m_emSizeInFontUnits; …
dead programmer
  • 4,223
  • 9
  • 46
  • 77
0
votes
1 answer

building android platform partially

I want to modify the Skia graphics library in Android slightly. Is it possible to only rebuild the modified library without downloading and building the whole platform? The platform is massive and this is too much a bother.. Downloading and building…
Tareq Sha
  • 515
  • 4
  • 14