Component Skia4Delphi

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
Skia4Delphi

1631353617750.pngSkia4Delphi is a cross-platform 2D graphics API for Delphi based on Google's Skia Graphics Library (Для просмотра ссылки Войди или Зарегистрируйся).

Google's Skia Graphics Library serves as the graphics engine for Google Chrome and Chrome OS, Android, Flutter, Xamarin, Mozilla Firefox and Firefox OS, and many other products.

Skia provides a more robust Canvas, being very fast and very stable, with hundreds of features for drawing 2D graphics, in addition to a text shaping engine designed to render texts in the most diverse languages with right-to-left support (such as the Persian language), full support for loading SVG files, support for creating PDF files, support for rendering Lottie files (verotized animations created in Adobe After Effects), integration with the GPU, among countless other cool features.

Skia's idea is similar to Firemonkey's, the same codebase used in an OS will work the same on other platforms. It is also possible to design using the CPU in independent background threads.

Skia also has native codecs, of course if you don't use the SKCodec class, when loading an encoded image it will give priority to using the platform's native codec, but it is possible to use its codec, for example for jpeg files it uses libjpeg-turbo and for png files libpng which maybe in certain environments may perform better than native.

See some examples:

Advanced shapes
1631353709784.png
Advanced text rendering / shaping
1631353724360.png
Svg
1631353738369.png

Для просмотра ссылки Войди или ЗарегистрируйсяДля просмотра ссылки Войди или Зарегистрируйся
 
Последнее редактирование:

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
Skia4Delphi v1.1

Changes

  • Added FMX sample (working from delphi XE6 and above, with platforms Win32, Win64, OSX64, iOS64, Android32, Android64);
  • Added VCL sample (working from delphi XE6 and above);
  • Added pre-built binaries of skia in repository, to facilitate implementation and to serve the samples;
  • Updated skia to version 0.29.0;
  • Added icudtl.dat file to windows platform;
  • Fixed compilation in iOS;
  • Fixed backwards compatibility with delphi;

Known Issues from Skia SVG

  • Some complex svgs, mainly exported by the adobe programs, are not supported yet. But these are exceptions, most svgs work stably on all platforms;
  • Problems in MacOS with language with decimal separator different than dot.
These issues are already being reported and investigated by google.

Скрытое содержимое могут видеть только пользователи групп(ы): Premium, Местный, Свои
 

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
Skia4Delphi v2.0

Changes

  • Added support for Delphi 11
  • Added support for OSX ARM 64-bit
  • Added Setup (friendly install)
  • Added IDE plugin to enable the skia in your project:
    replacing manual changes in project settings, deployment and dlls that were needed before. Now it's automatic, just right click on your project inside the IDE then "Enable Skia"
  • Built-in by default the "icudtl.dat" file in dll
  • Added the controls TSkLottieAnimation, TSkPaintBox and TSkSvg
  • Added SkParagraph (multiple styles in text)
  • Added support for Telegram stickers (using TSkLottieAnimation)
  • Added error handling in sensitive methods
  • Added the source of our website: Для просмотра ссылки Войди или Зарегистрируйся
  • Library rewritted
  • Improved the integration with apple's MetalKit
  • Improved library usage, like replacing SkStream to TStream
  • Fixed AccessViolation using TStream
  • Fixed issue with transparent bitmap in Vcl sample
  • Fixed minor issues
  • Explained Svg limitations in documentation
  • We are now using the latest inactive milestone release of Skia (M88), because the others are updated frequently.
  • Deprecated non-windows platforms in Delphi 10.3 Rio or older
Для просмотра ссылки Войди или ЗарегистрируйсяДля просмотра ссылки Войди или ЗарегистрируйсяДля просмотра ссылки Войди или Зарегистрируйся
 

ADSoft

Местный
Регистрация
1 Окт 2007
Сообщения
223
Реакции
86
Credits
1,062
Skia4Delphi v2.0.1
Скрытое содержимое могут видеть только пользователи групп(ы): Premium, Местный, Свои
 

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
Skia4Delphi v3.0.2
Скрытое содержимое могут видеть только пользователи групп(ы): Premium, Местный, Свои
 

mastcu

Местный
Регистрация
8 Сен 2009
Сообщения
182
Реакции
109
Credits
559
Skia4Delphi 3.1.0 February 24, 2022
Скрытое содержимое могут видеть только пользователи групп(ы): Premium, Местный, Свои
 

mastcu

Местный
Регистрация
8 Сен 2009
Сообщения
182
Реакции
109
Credits
559
Skia4Delphi 3.3.2
Скрытое содержимое могут видеть только пользователи групп(ы): Premium, Местный, Свои
 

mastcu

Местный
Регистрация
8 Сен 2009
Сообщения
182
Реакции
109
Credits
559
Skia4Delphi 3.4.0
Скрытое содержимое могут видеть только пользователи групп(ы): Premium, Местный, Свои