Rpoblem with gflRotateFine method

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

bhaduryb
Posts: 1
Joined: Mon Oct 20, 2008 1:51 pm

Rpoblem with gflRotateFine method

Post by bhaduryb »

Hi all,

I am a new member of this forum. I am facing a big problem and I need that resolution badly. I am using vb6 and gflsdk latest version. My code of rotation is given below,

rotateAngle = angle * sldRotate.Value

Dim Color As GFL_COLOR 'Background color
Color.Red = 0
Color.Blue = 0
Color.Green = 0


PtrBitmap2 = gflCloneBitmap(GflBitmap) 'Clone bitmap
If PtrBitmap2 <> &H0 Then
extGetGflBitmapFromPtr PtrBitmap2, GflBitmap2 'Get data on GflBitmap2
'Picture1.Cls
Error = gflRotateFine(GflBitmap2, PtrBitmap2, rotateAngle, Color)
If Error = 0 Then
extGetGflBitmapFromPtr PtrBitmap2, GflBitmap2 'If no error get data on GflBitmap2
End If
End If
extShowBitmapOnDc GflBitmap2, Picture1.hdc 'Display picture on the DC

Picture1.Refresh

Always I am getting Error=0, but the picture is not rotating. Please tell me how to solve this prolem.