Omnimaga
Calculator Community => TI Calculators => Lua => Topic started 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
-
For instance, using a Ndless Lua extension (to be written, of course, but the rotation algorithms are well-known would do the trick.
-
More explanation please?
-
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.
-
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.
-
I'll just go with set images. Thanks guys
-
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.
-
Nah, I'll just do set Images