Please help. Speed problem.....

TARQ

Member
Licensed User
Hello all,

I need some help.
I'm making some GPS software, and now i wat to show a compass needle.
I first tried it with 2 image controls. One would be invisible and contain the original image, the other would contain a rotated version using the FastRotate from the DZImage lib using the heading degrees for the rotating. This however would result in a memory error after a minute or 2.

So i tried another approach. I generated 361 images (for 0 to 360 degrees) and embedded them in one file.
Now when the program loads, it takes a long time to load them into an imagelist (using retreiveimage). Is there not a faster way to do this?
 

Georg

Member
Licensed User
If you want to rotate the Compass picture it works very well with

Sub Rotate (course)
degree = 361 - course
Image25.Image = dr.FastRotateImage(Image26.Image, degree)
End Sub

dr. from dzImage
sorry it works only in the interpreter version not in the compiled version.
Georg
 
Last edited:

TARQ

Member
Licensed User
No Problem Georg. I already got a working solution derrived from the info from dennishea.

Thanks
 
Top