Expand description
§From the official pixman docs:
Pixman is a low-level software library for pixel manipulation, providing features such as image compositing and trapezoid rasterization. Important users of pixman are the cairo graphics library and the X server.
Pixman is implemented as a library in the C programming language. It runs on many platforms, including Linux, BSD Derivatives, MacOS X, and Windows.
Pixman is free and open source software. It is available to be redistributed and/or modified under the terms of the MIT license.
Re-exports§
pub use pixman_sys as ffi;
Structs§
- Color
- Rgba color in the range of
u16::MIN
tou16::MAX
- Conical
Gradient - Conical gradient image
- Create
Failed - Resource creation failed
- Edge
- Defines a single edge
- FTransform
- Floating-point transform
- FVector
- Floating-point vector
- Fixed
- Fixed-point value
- Gradient
Stop - Gradient-stop
- Image
- Image holding some pixel data
- Image
Ref - A reference to a raw image
- Line
- Single line
- Linear
Gradient - Linear gradient image
- Operation
Failed - The requested operation failed
- Point
- A single point
- Radial
Gradient - Radial gradient image
- Region16
- 16bit region
- Region32
- 32bit region
- Solid
- Solid color image
- Span
- A single span
- Transform
- Fixed-point transform
- Transform
Convert Error - Failed to init Transform from FTransform
- Trap
- A single trap
- Trapezoid
- A trapezoid
- Triangle
- A triangle
- Unknown
Dither - The dither operation is unknown
- Unknown
Filter - The filter operation is unknown
- Unknown
Operation - The operation is unknown
- Unknown
Repeat - The repeat operations is unknown
- Unsupported
DrmFourcc drm-fourcc
- The provided drm-fourcc has no matching format code
- Unsupported
Format Code drm-fourcc
- The provided format code has no matching drm-fourcc
- Vector
- A single vector
Enums§
- Dither
- Defiens the possible dither operations
- Filter
- Defines the possible filter operations
- Format
Code - Possible format codes
- Operation
- Defines the possible operations for composition
- Overlap
- Describes overlap of a region with a rectangle
- Repeat
- Defines the possible repeat operations
Functions§
- blit
- Blit the src into the dst with the specified values
- fill
- Fill the provided bits with the provided values
- sample_
ceil_ y - Compute the smallest value greater than or equal to y which is on a grid row.
- sample_
floor_ y - Compute the largest value strictly less than y which is on a grid row.
Type Aliases§
- Box16
- 16bit Box
- Box32
- 32bit Box
- Rectangle16
- 16bit Rectangle
- Rectangle32
- 32bit Rectangle