Adding text to an image

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

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

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

Adding text to an image

Post by simon.schvartzman » Thu Dec 13, 2018 7:20 pm

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 ";" or not to ";" that is the question

Klaus
Posts: 11207
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Adding text to an image

Post by Klaus » Thu Dec 13, 2018 7:25 pm

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: 311
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Adding text to an image

Post by simon.schvartzman » Thu Dec 13, 2018 8:08 pm

Thanks Klaus you are genius!

Regards
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “Talking LiveCode”