Skia

From Free Pascal wiki
Revision as of 11:13, 25 April 2024 by Mattias2 (talk | contribs) (→‎Setup)
Jump to navigationJump to search

Overview

Skiais an open source cross platform 2D graphics library used for example by Chrome and Firefox.

The skia4delphiproject provides shared and static libraries and Pascal units to access Skia with FPC and Delphi.

In lazarus-ccr there Lazarus packages and LCL components.

Setup

1. Download lazarus-ccr via svn:

svn checkout https://svn.code.sf.net/p/lazarus-ccr/svn/ lazarus-ccr-svn

The skia files are in the directory lazarus-ccr-svn/components/skia .

There are three Lazarus packages:

  • design/Skia.LCL.Design.lpk - the IDE addon
  • src/Skia.LCL.lpk - contains the LCL controls like TSkPaintBox and TSkCustomWinControl
  • skia4d_package/Skia.lpk - the units from skia4delphi

2. Install the package Skia.LCL.Design.lpk in the IDE:

  • Open the design/Skia.LCL.Design.lpk via IDE menu Package / Open Package File (lpk)
  • Then click the button Use and Install
  • Restart the IDE

You will find a new page Skia in the component palette.