Puting text into imageData

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
columna1
Prole
Posts: 3
Joined: Sat Apr 20, 2013 5:21 am

Puting text into imageData

Post by columna1 »

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?
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Puting text into imageData

Post by T-Bone »

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.
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Puting text into imageData

Post by slime »

T-Bone wrote:Then try to save it somehow.

Code: Select all

Canvas:getImageData():encode("filename.png", "png")
columna1
Prole
Posts: 3
Joined: Sat Apr 20, 2013 5:21 am

Re: Puting text into imageData

Post by columna1 »

Yes... Right after posting this I realized that this was a stupid question, also I just switched over to lua for windows
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest