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

add text and change opacity with drawString ? #642

Open fimbresjudas opened 5 months ago

fimbresjudas commented 5 months ago

I can't change opacity to added text in image captured, why? what is wrong?

This is line code for do that:

ui.drawString( resizeImage, DateTime.now().toString(), font: ui.arial14, color: ui.ColorRgba8(200, 200, 200, 50));

Can someone help me?

brendan-duncan commented 5 months ago

The library wasn't taking into account the given color alpha. I fixed it in the github version. It will be a little bit before I can publish a new version.

fimbresjudas commented 5 months ago

The library wasn't taking into account the given color alpha. I fixed it in the github version. It will be a little bit before I can publish a new version.

What is version with you fixed it?

brendan-duncan commented 5 months ago

I have not released it. It may be a little bit before I get a chance to do that. If you need it right away, you can temporarily point your pubspec dependency to the github version:

image:
    git:
      url: https://github.com/brendan-duncan/image
      ref: main