ARM-software / Arm-2D

2D Graphic Library optimized for Cortex-M processors
Apache License 2.0
298 stars 66 forks source link

Add new APIs for filling colour with horizontal/vertical line mask #51

Closed GorgonMeducer closed 7 months ago

GorgonMeducer commented 7 months ago

Line masks are useful for saving memory and effectively replacing masks that repeat the same lines of pixel horizontally and vertically.

In the scene template: alarm-clock, the mask

extern const arm_2d_tile_t c_tileECGScanMask

is a typical example that should be replaced by a line mask.

image

We should add the following APIs:

GorgonMeducer commented 7 months ago

Added the following APIs for gray8, rgb565 and cccn888:

GorgonMeducer commented 7 months ago

Added the following APIs for gray8, rgb565 and cccn888: