MapWinGIS:Image Value
From MapWindow GIS
Value
Gets or sets the value of a pixel in the image.
VB.NET Usage
Property Value(Row As Integer, Col As Integer) As Integer
Parameters
|
Row | The row in the image for which the value is required. |
| Col | The column in the image for which the value is required. |
| ReturnValue | The value of the specified pixel in the image. |
Sample Code
Private Sub ImagePixelValue()
Dim image As New MapWinGIS.Image()
Dim row As Integer, col As Integer, value As Integer
'Set the value of the desired row
row = 10
'Set the value of the desired column
col = 10
'Set the value to assign to the specified row and column in the image
value = 250
'Set the value of the specified row and column in the image to the specified value
image.Value(row, col) = value
'Get the value of the specified row and column in the image
value = image.Value(row, col)
End Sub
VB 6 Usage
Property Value(Row As Long, Col As Long) As Long
Parameters
|
Row | The row in the image for which the value is required. |
| Col | The column in the image for which the value is required. |
| ReturnValue | The value of the specified pixel in the image. |
Sample Code
Private Sub ImagePixelValue()
Dim image As New MapWinGIS.image
Dim row As Long, col As Long, value As Long
'Set the value of the desired row
row = 10
'Set the value of the desired column
col = 10
'Set the value to assign to the specified row and column in the image
value = 250
'Set the value of the specified row and column in the image to the specified value
image.value(row, col) = value
'Get the value of the specified row and column in the image
value = image.value(row, col)
End Sub
















