MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGIS:Image Value

From MapWindow GIS

Jump to: navigation, search

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://www.mapwindow.org/wiki/index.php/MapWinGIS:Image_Value"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: November 12 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links