Please help. Speed problem.....

Discussion in 'Questions (Windows Mobile)' started by TARQ, Apr 24, 2008.

  1. TARQ

    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?
  2. dennishea

    dennishea Active Member Licensed User

  3. TARQ

    TARQ Member Licensed User

    :sign0013: Ah, Thanks. Missed that one.....:sign0060:
  4. Georg

    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.
    Last edited: Apr 25, 2008
  5. TARQ

    TARQ Member Licensed User

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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice