Questions tagged [skia4delphi]
6 questions
3
votes
1 answer
How to convert SVG file to PNG file with transparency using Delphi
I want to convert a SVG file to PNG file programmatically.
I'm using Delphi 10.3.3 with Skia4Delphi, but this code snippet doesn't respect transparency. It creates black background.
var
LBitmap: TBitmap;
MyPng: TPNGImage;
begin
if…

Xel Naga
- 826
- 11
- 28
2
votes
1 answer
How to resize image using Skia4Delphi
I can load and save image files using Skia4Delphi.
Here is my code:
var
LImage: ISkImage;
LSurface: ISkSurface;
LPaint: ISkPaint;
begin
LImage := TSkImage.MakeFromEncodedFile('C:\IMAGE-OLD.PNG');
LPaint := TSkPaint.Create;
LSurface :=…

Xel Naga
- 826
- 11
- 28
0
votes
0 answers
Cannot create a swap chain for 'TCanvasD2D' in Delphi FMX App
I've developed a simple app in Delphi FMX, but occasionally very randomly I get this error in my application. It doesn't happen often, but does happen every now and then:
I then simply click on "OK" and continue as normal on the app. It doesn't…

Shaun Roselt
- 1,650
- 5
- 18
- 44
0
votes
3 answers
PNG to TBitmap (preserving transparency)
I use Delphi 10.3.3 VCL.
I want to load a PNG image, convert to TBitmap (in order to make some modifications), then save it as PNG.
I use this code, but it loses transparency. Transparent background becomes black.
var
InputPNG: TPngImage;
…

Xel Naga
- 826
- 11
- 28
0
votes
0 answers
Print a rotate text with Skia4Delphi
How can I rotate a text using the TSKPaintBox? My goal is to print a text rotation of 45°.
I searched on the skia4delphi examples, but I didn't find anything.
0
votes
1 answer
Building Skia4Delphi with PowerShell error
I'm trying to build Skia with PowerShell, but it's returning a error...
> PS D:\Componentes_Delphi\skia\skia> .\sk4d-build --targets win32
> INFO: Building for Win32.
> ERROR: Unable to generate build files for Win32 target: ERROR at…

missingNO
- 29
- 3