Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add text and change opacity with drawString ? #642

Open
fimbresjudas opened this issue Apr 20, 2024 · 3 comments
Open

add text and change opacity with drawString ? #642

fimbresjudas opened this issue Apr 20, 2024 · 3 comments

Comments

@fimbresjudas
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants