Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ValidateLines Method
See Also 
Leadtools Namespace > RasterImageAnimator Class : ValidateLines Method



row
Row number of the first line in the image to validate. In the RasterCodecs.LoadImage event, this corresponds to the first line in the buffer.
lines
Number of lines to validate. In the RasterCodecs.LoadImage event, this corresponds to the number of lines in the buffer.
Validates lines of an image that was added during a RasterCodecs.LoadImage event using the Append function.

Syntax

Visual Basic (Declaration) 
Public Sub ValidateLines( _
   ByVal row As Integer, _
   ByVal lines As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImageAnimator
Dim row As Integer
Dim lines As Integer
 
instance.ValidateLines(row, lines)
C# 
public void ValidateLines( 
   int row,
   int lines
)
C++/CLI 
public:
void ValidateLines( 
   int row,
   int lines
) 

Parameters

row
Row number of the first line in the image to validate. In the RasterCodecs.LoadImage event, this corresponds to the first line in the buffer.
lines
Number of lines to validate. In the RasterCodecs.LoadImage event, this corresponds to the number of lines in the buffer.

Example

For an example, refer to Append.

Remarks

The Append method enables you to update an image in the RasterCodecs.LoadImage event, so that you can play an animation file as it is being loaded. The ValidateLines method lets you validate the lines that the animation playback engine will render to the target image.

If you pass null (Nothing in VisualBasic) in the animatedImage parameter for the RasterImageAnimator constructor, you can use the Append method to add frames to the multi-frame image during the animation. This is useful if you want to play an animated file as it is being loaded. If you need to reference the multi-frame image after the animation, you can call the Destroy method before you dispose this RasterImageAnimator object.

After you call Destroy, this RasterImageAnimator object is invalid and you should only call the Dispose method afterwards.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also