dzImage

Discussion in 'Additional Libraries' started by wolfgang, Oct 28, 2008.

  1. wolfgang

    wolfgang Member Licensed User

    Hi,
    how to use FastPixelsStart and FastPixelsEnd? The helpfile doesn't help me.
     
  2. agraham

    agraham Expert Licensed User

    In what way doesn't it help :confused:
     
  3. wolfgang

    wolfgang Member Licensed User

    Hi,
    I don't know how do I call this method (please write this line of code). I used FastRotateImage(sourceImage, angle) without any problem but I didn't call FastPixelsStart before. When I trie to call this method I always get an errormessage (because I'm doing wrong)???
     
  4. agraham

    agraham Expert Licensed User

    What is the error message? What is your code?
     
  5. wolfgang

    wolfgang Member Licensed User

    Hi Agraham, this is the example (6.30) from dz:
    I'm missing the lines with FastPixelsStart and FastPixelsEnd.
    Everthing I tried gave me an errormessage. What must be written to call dr.FastPixelsStart?
     

    Attached Files:

  6. agraham

    agraham Expert Licensed User

    If you want help you must post the source that is causing the problem together with any error messages. I can see from the error message that the line causing the error is not included in the source you have posted! Luckily I can also see from that error message that you are doing it wrong

    Code:
    dr.FastPixelsStart
    ...
    dr.Fastxxx 
    ' do Fast things
    ...
    dr.FastPixelsEnd
     
  7. wolfgang

    wolfgang Member Licensed User

    Part of the "new" code:
    and errormessage. I tried everthing, always the same error. Maybe this works only on PPC?
     
  8. agraham

    agraham Expert Licensed User

    It does work on the PC. I assume you have the correct libraries as components for your app, the desktop library is different to the device.

    I didn't write this library and don't have the source code but I did write the help from what the library appeared to do as the library author doesn't like doing documentation. I have looked inside the library with .NET Reflector and it seems that I have overlooked the significance of the names of FastPixelsStart and FastPixelsEnd. They are only needed if you are using FastGetPixel and FastSetPixel. They are not needed for FastRotateImage.

    The reason for your error on FastPixelsStart is probably that there no image has been assigned to the Image property for FastPixelsStart to prepare for use.

    Note that if you FastRotateImage the same image several times it gets larger and larger every time and the rotate slows down. It is not good practice to rotate an image more than once as rotating is a lossy process. If you want a different angle of rotation you should go back to the original image and rotate that.
     
  9. ThMstr

    ThMstr New Member Licensed User

    It seems to me that enclosing "FastRotateImage" in "FastPixelsStart" and "FastPixelsEnd" commands, prevents FastRotateImage from working...
     
Loading...
  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