This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, May 4, 2006 2:24:27 PM(UTC)
Groups: Registered
Posts: 18
Hi,
I am using a LEADRasterView control to show some Dicom images. When a image with multipage displayed as animation, I meet two problems:
1, the speed is too fast and I cannot find a property to control the speed;
2, the colors changed strangely, for example, blue area becomes red, and red area becomes blue. But white and black display normal.
How could I fix them?
#2
Posted
:
Sunday, May 7, 2006 3:48:15 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
David,
1. You can control the animation speed using the LEADRaster.BitmapDelay property. You can set the value for different bitmap pages by looping through the BitmapListIndex property (range from 0 to BitmapListCount-1) and setting the delay value for each list item.
2. The color problem is probably related to one of 2 things:
- Either you are not using an appropriate animation palette (LEADRasterView.AnimationPalette property)
- Or you are loading the images in the RGB color model instead of BGR.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Monday, May 8, 2006 6:37:16 AM(UTC)
Groups: Registered
Posts: 18
Hi Amin,
Thanks for your replay. I got it by using a timer:
'-----------------------------------------------------------------
'Timer_Timer: timer for play animation
'-----------------------------------------------------------------
Private Sub Timer_Timer()
On Error GoTo Err_Timer_Timer
If mnIndex >= Me.LEADRasterView.Raster.BitmapListCount - 1 Then
mnIndex = 0
Else
mnIndex = mnIndex + 1
End If
LEADRasterView.Raster.BitmapListIndex = mnIndex
LEADRasterView.ForceRepaint
Exit Sub
Err_Timer_Timer:
MsgBox "Error occurred when perform timer.", vbCritical + vbOKOnly
End Sub
Now everything is OK, even I could control the speed of animation, show image pages one by one, and the color problem is also fixed but I do nothing for it.
Thank you again.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.