Puting text into imageData
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Puting text into imageData
I was working on a picture maker and i want text support but i have only found out how to save with the imageData:encode function and i dont know how to put text into an image data object can someone help me on this one?
Re: Puting text into imageData
First of all, I'd say that you may have chosen the wrong tools for making your "picture maker", maybe something other than Löve would suit your needs better. That said, I'd say draw it to a Canvas instead, which allows you to use all of the graphics commands. Then try to save it somehow.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- slime
- Solid Snayke
- Posts: 3162
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Puting text into imageData
T-Bone wrote:Then try to save it somehow.
Code: Select all
Canvas:getImageData():encode("filename.png", "png")
Re: Puting text into imageData
Yes... Right after posting this I realized that this was a stupid question, also I just switched over to lua for windows
Who is online
Users browsing this forum: Bing [Bot] and 2 guests