MapWinGIS:Grid GetFloatWindow

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


GetFloatWindow

Returns a rectangular subsection (window) of a grid as an array of grid cell values. The array must be one-dimensional with a dimension:

(EndRow - StartRow) * (EndCol - StartCol)



VB.NET Usage

Function GetFloatWindow(StartRow As Integer, EndRow As Integer, StartCol As Integer, EndCol As Integer, ByRef Vals As Single) As Boolean

            Parameters

StartRow Integer, A zero-based index of the first row to include in the window
EndRow Integer, A zero-based index of the last row to include in the window
StartCol Integer, a zero-based index of the first column to include in the window
EndCol Integer, a zero-based index of the last column to include in the window
Vals The first element of a one-dimensional Single() array where the output values will be stored. The dimension of the array must be (EndRow - StartRow) * (EndCol - StartCol)
Return Value Boolean

VB.NET Sample Code



C# Usage

bool GetFloatWindow(int StartRow, int EndRow, int StartCol, int EndCol, ref float Vals)

            Parameters

StartRow int
EndRow int
StartCol int
EndCol int
Vals float
Return Value bool

C# Sample Code



VB 6 Usage

Function GetFloatWindow(StartRow As Long, EndRow As Long, StartCol As Long, EndCol As Long, ByRef Vals As Single) As Boolean

            Parameters

StartRow Long
EndRow Long
StartCol Long
EndCol Long
Vals Single
Return Value Boolean

VB 6 Sample Code


Back to MapWinGIS.Grid

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

This page has been accessed 875 times. This page was last modified on 9 February 2009, at 16:42.