In what way doesn't it helpThe helpfile doesn't help me.
"Fast" methods using low-level techniques to achieve fast execution
-----------------------------------------------------------------
FastPixelsStart: This must be called before using any "Fast" method. Any number of "Fast" functions can then be called.
FastPixelsEnd: This must be called after using the last "Fast" method to unlock the image for further use.
FastGetPixel(x, y): Returns a byte array(4) with the values of the internal stored image's pixel data. "Dim Type(Alpha, Red, Green, Blue) pixel As byte".
FastSetPixel(x, y, alpha, red, green, blue): Set the values of the pixel data in position X,Y of the internal stored image to Alpha, Red, Green, Blue.
FastRotateImage(sourceImage, angle): Rotates an image. Angle can be any but 0, 90, 180, 270 are optimised. The empty space is filled with the colour of pixel(0,0) of the original image. Returns the rotated Image
Sub Globals
End Sub
Sub App_Start
Form1.Show
dr.New1
End Sub
Sub Button1_Click
WaitCursor(True)
Image2.Image = dr.FastRotateImage(Image1.Image,TextBox1.Text)
WaitCursor(False)
End Sub
Sub Button2_Click
Image1.LoadPicture(AppPath & "\rotate.jpg")
Image2.Image = Image1.Image
End Sub
Sub Button3_Click
WaitCursor(True)
Image2.Image = dr.ZoomImage(Image2.Image, TextBox1.Text)
WaitCursor(False)
End Sub
dr.FastPixelsStart
...
dr.Fastxxx ' do Fast things
...
dr.FastPixelsEnd
and errormessage. I tried everthing, always the same error. Maybe this works only on PPC?.
.
.
Sub Button1_Click
WaitCursor(True)
dr.FastPixelsStart
Image2.Image = dr.FastRotateImage(Image1.Image,TextBox1.Text)
dr.FastPixelsEnd
WaitCursor(False)
End Sub
.
.
.
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.Maybe this works only on PPC?
They are not needed for FastRotateImage.