sksamuel / scrimage

JVM - Java, Kotlin, Scala image processing library
https://sksamuel.github.io/scrimage
Apache License 2.0
1.07k stars 140 forks source link

Rendering text onto an image #250

Closed Cormanz closed 2 years ago

Cormanz commented 2 years ago

Hi, how do I render text onto an image with Scrimage? I've tried to use the RenderTextFilter from thirdparty.jhlabs.image.RenderTextFilter, but I can't figure out how to use it, and I can't find documentation on it anywhere.

My goal:

Cormanz commented 2 years ago

I found a way to get it work, but it felt needlessly complicated. Would it be a bad idea to implement a method like image.text to simplify the process?

sksamuel commented 2 years ago

@Cormanz there is the Canvas classes which allow you to draw text pretty easily. Did you spot that ?

Cormanz commented 2 years ago

I didn't. Could you show an example?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

sksamuel commented 2 years ago

Did you try the canvas stuff in scrimage ?

On Mon, 28 Mar 2022 at 21:14, Corman @.***> wrote:

I found a way to get it work, but it felt needlessly complicated. Would it be a bad idea to implement a method like image.text to simplify the process?

— Reply to this email directly, view it on GitHub https://github.com/sksamuel/scrimage/issues/250#issuecomment-1081328104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFVSGXVRJ6II6MF67K6HPDVCJRR5ANCNFSM5R4PVDEQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>