brendan-duncan / image

Dart Image Library for opening, manipulating, and saving various different image file formats.
MIT License
1.17k stars 265 forks source link

Can I set the text color, opacity and rotation angle when using drawString? #623

Open kjxbyz opened 6 months ago

kjxbyz commented 6 months ago

Can I set the text color, opacity and rotation angle when using drawString?

like this

2024-03-20 20 28 45
brendan-duncan commented 6 months ago

Unfortunately no, the text drawing capabilities of this library are very limited.

kjxbyz commented 6 months ago

Can this feature be supported?

brendan-duncan commented 6 months ago

No, sorry, I won't be adding any more text rendering to the library. Text color and opacity can be done, but not rotation, and the font and text layout support is extremely limited.

For rotation, you could draw the text into a separate image, rotate that image, and then composite the text image onto the the background image.