ImageMan ActiveX Control Version 8
GetRow Method
See Also  Example  Send comments on this topic.
Row
Specifies the index of the row whose bytes should be returned.
Start
Optional - Specifies a byte offset from the start of the row from which to return data
Len
Optional - Specifies the number of bytes of data to be returned in the array.

Glossary Item Box

Description

Returns a Byte array that contains the image data from the specified row.

Syntax

Visual Basic
Public Function GetRow( _
   ByVal Row As Long, _
   Optional ByRef Start As Variant, _
   Optional ByRef Len As Variant _
) As Variant

Parameters

Row
Specifies the index of the row whose bytes should be returned.
Start
Optional - Specifies a byte offset from the start of the row from which to return data
Len
Optional - Specifies the number of bytes of data to be returned in the array.

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 byte array

    For x = 1 To UBound(ary, 1)
        c = ary(x)
        ' Do something to c
        ary(x) = c
    Next x

    ' Now put the row back in the image
    im1.SetRow I, ary

Next I

ImageControl1.Refresh

See Also

© 2014 Data Techniques Inc. All Rights Reserved.