Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, May 4, 2006 2:24:27 PM(UTC)
David9908

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?

 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, May 7, 2006 3:48:15 AM(UTC)

Amin  
Amin

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.
LEAD Logo
 
#3 Posted : Monday, May 8, 2006 6:37:16 AM(UTC)
David9908

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.069 seconds.