Import an image, rotate, save.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Googie85
Posts: 199
Joined: Tue Aug 05, 2014 10:07 am

Import an image, rotate, save.

Post by Googie85 » Sun Jul 22, 2018 6:39 am

Hi Guys!!

I have browsed the forums and I am still having issues with rotating an image and saving it. I have the following line of code:

Code: Select all

   rotate image "temp" by 90

The target OS is Android.


Many Thanks,

Googie.

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

Re: Import an image, rotate, save.

Post by Klaus » Sun Jul 22, 2018 10:44 am

Hi Googie,

do not use rotate but: set the angle of img xyz to ...
Please check the differences in the dictionary.

Code: Select all

...
put specialfolderpath("documents") & "/the_rotated_image.jpg" into tImageFile
set the angle of img "temp" to 90
export img "temp" to file tImageFile as JPEG
...
Best

Klaus

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”