Adding text to an image

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
simon.schvartzman
Posts: 672
Joined: Tue Jul 29, 2014 12:52 am

Adding text to an image

Post by simon.schvartzman »

Hi, i would like to add some text to an image captured by my App but don't know if it is possible (or how...)
Just to be more clear this is what I would like to accomplish

1- capture a picture (or pick it from the image library) and show it on the screen
2- press a button to add a text (let's say the actual date) on the bottom left corner of the picture
3- save the "edited" picture.

I know how to handle steps #1 & 3 but don't how to accomplish #2

Suggestions would be very much appreciated (as always many thanks to all of you willing to share your knowledge)

Regads
Simon
________________________________________
To "AI", or not to "AI", that is the question
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Adding text to an image

Post by Klaus »

Hi Simon,

add an empty text field in the lower left corner of your image and then group the image and the field, so you can export a snaphot from that group easily.

Put the long date into fld "the one over the image", or ASK the user to enter some text and put that into the field.

Continue with #3, export a snapshot of that group.


Best

Klaus
simon.schvartzman
Posts: 672
Joined: Tue Jul 29, 2014 12:52 am

Re: Adding text to an image

Post by simon.schvartzman »

Thanks Klaus you are genius!

Regards
Simon
________________________________________
To "AI", or not to "AI", that is the question
Post Reply