Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: Augs on February 09, 2013, 07:22:33 am

Title: Rotating an Image with LUA
Post by: Augs on February 09, 2013, 07:22:33 am
Is there anyway to rotate an Image using OS 3.1

I know that in OS 3.2 you can use Image.rotate but that is not available in OS 3.1

Any way to do it?

Otherwise I could just make set images.

Thanks in advance
Title: Re: Rotating an Image with LUA
Post by: Lionel Debroux on February 09, 2013, 07:58:24 am
For instance, using a Ndless Lua extension (to be written, of course, but the rotation algorithms are well-known would do the trick.
Title: Re: Rotating an Image with LUA
Post by: Augs on February 09, 2013, 08:39:47 am
More explanation please?
Title: Re: Rotating an Image with LUA
Post by: Levak on February 09, 2013, 08:57:48 am
More explanation please?
Ndless 3.1 has a feature, named Ndless Lua extensions, that enables anyone having the .luax file in the ext directory of Ndless to enhance Lua modules.
Extensions files (*.luax) are C compiled modules that uses the OS Lua API.
Since Ndless runs only on 3.1 for now, this means your script won't run on 3.2
As said Lionel, no real extension were written so far, so no extension were written to rotate a TI-Image.
Title: Re: Rotating an Image with LUA
Post by: Lionel Debroux on February 09, 2013, 10:40:02 am
And the Internet is a better source of documentation than I am about image rotation algorithms, although I know the basics. The ExtGraph TI-68k library contains such a routine, written in 68000 ASM, but it was contributed to ExtGraph by someone else.
Title: Re: Rotating an Image with LUA
Post by: Augs on February 09, 2013, 11:00:48 am
I'll just go with set images. Thanks guys
Title: Re: Rotating an Image with LUA
Post by: Jim Bauwens on February 09, 2013, 05:46:45 pm
Rotating an image in a rectangular way (90 degree, etc) wouldn't be so hard to code in pure lua. So if that's what you need it I could code it quickly.
Title: Re: Rotating an Image with LUA
Post by: Augs on February 10, 2013, 08:43:24 am
Nah, I'll just do set Images