pypag is the python binding for tencent libpag
- CMake 3.22.2
- conda
- pybind11
mkdir build
cd build
cmake ..
make
in build directory, run
python ../sample/sample.py
- register_font
- font_family (readonly)
- font_style (readonly)
- load
- num_images
- replace_images
- num_texts
- get_text_data
- replace_text
- width (readonly)
- height (readonly)
- duration
- frame_rate (readonly)
- from_path
- from_bytes
- from_pixels
from_pixels(buffer, width, height, colorType, alphaType)
- width (readonly)
- height (readonly)
- text
- font_family
- font_style
- make_offscreen
- read_pixels
- surface
- composition
- progress
- flush
- next_frame