Skip to content

SkijaJava Bindings for Skia

High-performance, hardware-accelerated 2D graphics for the JVM.

Unofficial Documentation

This documentation is maintained by the community and is not an official publication of the Skia or Skija projects. If you find any errors or have suggestions, please report them at Eatgrapes/Skija-Docs.

Full Documentation Index

The Essentials

  • Getting Started: A bird's-eye view of how Skija works and where to begin.
  • Installation: Setting up dependencies for Windows, macOS, and Linux.
  • Rendering Basics: Surfaces, Canvases, and your first "Hello World".
  • Colors and Alpha: Handling transparency, premultiplication, and color spaces.
  • Color API: High-precision representation, formats, and spaces.
  • Animation: Creating movement, game loops, and playing Lottie/GIFs.
  • Resource Management: How Skija handles native memory and the Managed lifecycle.

API Deep Dives

  • Surface: Creating drawing destinations (Raster, GPU, Wrapped).
  • Canvas: Transformations, clipping, and drawing primitives.
  • Images & Bitmaps: Loading, drawing, and manipulating pixel data.
  • ImageInfo: Pixel dimensions and encoding.
  • ImageFilter: Pixel-level effects (blurs, shadows).
  • IHasImageInfo: Interface for objects with ImageInfo.
  • Sampling Mode: Defining how pixels are sampled during scaling.
  • Cubic Resampler: High-quality bicubic interpolation.
  • Data: Efficient native memory management.
  • StreamAsset: Seekable read-only data streams.
  • Matrix: 3x3 and 4x4 matrix transformations.
  • Codec (Animations): Low-level image decoding and GIF/WebP animations.
  • Paint & Effects: Styles, blurs, shadows, and color filters.
  • Shadows: 2D drop shadows and 3D elevation-based shadows.
  • Paths: Creating and combining complex geometric shapes.
  • PathBuilder: Fluent API for constructing paths.
  • PathMeasure: Measuring length and finding points along a path.
  • Region: Integer-based area operations and hit-testing.
  • Picture: Recording and replaying drawing commands for performance.

Typography & Text

Advanced Graphics

Extensions

  • SVG: Loading and rendering SVG icons and illustrations.
  • Lottie: High-performance vector animations with Skottie.