Archived: This is not necessary to satisfy the purpose. To split the bitmap, we can simply scan from top and split them if the width is different from the current line to the previous line.
On the environment which provides only drawing rect (e.g. Stormworks), we can optimize drawing bitmap by drawing pixels with rectangle at once. The purpose of this repository is optimizing that problem.
- Convert a bitmap to paths.
- Convert paths to rectangle paths with this algorithm: "Minimum Partitioning of Rectilinear Regions"
This repository isn't ready for work.