Ok how about this code-- it does not use an array, but does it do what you are trying to accomplish? It runs fast and gets you each degree (direction) of your image.
Note: Look it over first, and just know beforehand that it saves the image in each degree as a .bmp to the directory you run it from... so that's 360 files (I ran mine with a 32x32 pixel image). Also it doesn't do anything with TFormFilter etc.
Note: Look it over first, and just know beforehand that it saves the image in each degree as a .bmp to the directory you run it from... so that's 360 files (I ran mine with a 32x32 pixel image). Also it doesn't do anything with TFormFilter etc.
win = CreateWindow("Test",100,100,600,400,Desktop()) canvas = CreateCanvas(20,20,320,320,win); ,panel SetGadgetLayout canvas,1,1,1,1 SetBuffer CanvasBuffer(canvas) myimage = LoadImage("arrow2.bmp") ; <--- 32x32 PIXEL IMG For i = 1 To 359 tempImage = CopyImage(myimage); get a copy of pic RotateImage(tempImage,i); rotate the copy i degrees SaveImage(tempImage,"tempImageDegree" + i + ".bmp") DebugLog "tempImage" + i + " saved...." DrawImage tempimage,40,100 FlipCanvas canvas Next End