Questions tagged [skiasharp]
SkiaSharp provides a cross-platform C# API for doing 2D graphics. It is powered by Google’s Skia library, the same library that powers Google Chrome, Firefox and Android’s graphic stacks.
skiasharp
494
questions
0
votes
0
answers
15
views
What's the performance difference between an SKPath draw and individual line draws?
Technically I'm using SkiaSharp but this is a general Skia query.
Let's say I have hundreds of points and I'm drawing straight lines or arcs between them.
I could either iterate over each one doing ...
1
vote
0
answers
44
views
How can I apply non-affine transformations to 2D framework elements in WPF?
Historically, WPF is not able to support 2D non-affine transformations out of the box. Typical solutions require setting up a 3D scene. Of course, I'm trying to avoid creating a 3D scene in my ...
0
votes
1
answer
23
views
Why is my FOV Perspective Matrix4x4 looking Orthographic (DotNet and SkiaSharp)?
Brief overview, you can image I'm drawing points of a 3D schematic onto a Canvas, think CAD.
I have points in 3D XYZ Vector3 coordinates, and I've got a model, view, projection matrix all setup. I've ...
1
vote
1
answer
66
views
Blazor Hybrid app and SkiaSharp performance improvements
I am trying to make a simple Maui Blazor Hybrid application that would load a picture, and I would be able to adjust brightness in real time. I managed to do it manually just using simple < img >...
0
votes
0
answers
48
views
Skiasharp is not working on linux platform
I integrated SkiaSharp to generate images within my .Net 8 application . While developing the project on Windows, everything functioned correctly in the local environment. However, upon deployment to ...
0
votes
1
answer
80
views
.NET MAUI Windows 9.0 Preview 5 on Windows/WinUI 3 crashes when using SwapChainPanel via SkiaSharp after a while
The Problem
We are using .NET MAUI 9.0 Preview 5, .NET SDK 9.0 Preview 5, and SkiaSharp 3.0 Preview 3.1 in our game, GnollHack. SKGLView of SkiaSharp uses SwapChainPanel to render GPU accelerated ...
0
votes
0
answers
24
views
Silk.NET window flickering when using SkiaSharp
My goal is to create SkiaSharp canvas in Silk.Net window. It is simple program to change rects round borders. When I running my code, my window is flickering.
My code:
using Silk.NET.Windowing;
using ...
3
votes
1
answer
134
views
SkiaSharp.SKBitmap as alternative to System.Drawing.Bitmap doesn't work as expected
I have a working c# code that create a System.Drawing.Bitmap:
byte[] logoBytes = decodeBase64SafeWeb(json["logo.png"].ToString());
using (Bitmap bitmapold = (Bitmap)Bitmap.FromStream(new ...
0
votes
1
answer
237
views
.net MAUI How to get DPi/PPi cross platform
Get DPI/PPI
Hello,
How can one get the DPI or PPI in Maui for every platform?
I could only find DeviceDisplay.MainDisplayInfo.Density, but this gives me only the scaling of the display like 1,2 and so ...
0
votes
0
answers
54
views
c# Skiasharp finding SKEncodedImageFormat from image read from a Stream
I'm hoping someone can help.
I have an image as a byte array read from a stream.
I don't know the format of the image, which could be one of many.
I want to use the c# SkiaSharp nuget library to read ...
0
votes
0
answers
36
views
SKBitmap resourceID = SKBitmap.Decode(stream); is throwing a System.ArgumentNullException:
SKBitmap resourceID = SKBitmap.Decode(stream); is throwing a System.ArgumentNullException.
I tried changing the names, but it's not working. I can't understand what the error is. Please tell me. Here'...
0
votes
0
answers
162
views
How to draw a interactive dynamic image with .Net MAUI Graphics
I want to create an interactive image (tree) in .NET MAUI (Graphics), where customers can hang their fruits on it. To realize this, I played with a grid view, but that didn't really work out.
My ...
0
votes
0
answers
38
views
Facing the DllNotFoundException with SkiaSharp.dll while converting the document as a PDF after using the hosted AWS service path
We have deployed the ASP.NET Core Web API with AWS Lambda. While using the hosted AWS service path in the fetch API to invoke the server for saving the document as pdf processing, we faced the problem ...
0
votes
1
answer
62
views
mapsui - SkiaSharp error in SkiaSharp.SKPicture in a revit addon
When I use mapsui in a standard wpf mvvm c# project, everything works fine, but when I try to use the mapsui map in a revit addin, I get the following error:
Method not found: "SkiaSharp....
0
votes
0
answers
91
views
How to Create GPU SkImage in a Background Thread and Draw it on a Main SkSurface with OpenGL and Skia?
I'm integrating Skia with OpenGL and facing a multi-threading challenge. I need to create a SkImage on a GPU in a background thread and render it on a SkSurface in the main thread. How can I safely ...