ImageMan ActiveX Control Version 8
SetRow Method
See Also  Example  Send comments on this topic.
Row
Specifies the index of the row to set
Bits
An Array containing the values to be placed into the image at the specified row
Start
Optional - Specified the Byte offset of the Row at which the array should be copied.

Glossary Item Box

Description

Sets the image data at the specifed row to the data contained in array.

Syntax

Visual Basic
Public Sub SetRow( _
   ByVal Row As Long, _
   ByRef Bits As Variant, _
   Optional ByRef Start As Variant _
) 

Parameters

Row
Specifies the index of the row to set
Bits
An Array containing the values to be placed into the image at the specified row
Start
Optional - Specified the Byte offset of the Row at which the array should be copied.

Example

(Visual Basic)Copy Code
'To change all bytes in an image
Dim ary

For I = 0 To ImageControl1.ImageHeight - 1
    ary = im1.GetRow(I) 'returns a VB byte array

      For x = 1 To UBound(ary, 1)

          c = ary(x)

          ' Do something to c

          ary(x) = c

      Next x

      im1.SetRow I, ary

Next I

ImageControl1.Refresh

See Also

© 2014 Data Techniques Inc. All Rights Reserved.