MapWinGIS:Image Value

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

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

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Image_Value"

This page has been accessed 1,662 times. This page was last modified on 9 November 2005, at 16:51.