MapWinGIS:Utils GridToImage

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

GridToImage

Create an image from the grid using the given grid color scheme.


VB.NET Usage

Function GridToImage(Grid As MapWinGIS.Grid, cScheme As MapWinGIS.GridColorScheme, Optional cBack As MapWinGIS.ICallback) As MapWinGIS.Image

            Parameters

Grid

The grid to use to create the image.
cScheme The grid color scheme to use to create an image from the grid.
cBack Optional. The ICallback object which will receive progress and error messages while the image is being created from the grid.
ReturnValue The image created from the grid.

Sample Code

    Private Sub GridToImage()
        Dim grid As New MapWinGIS.Grid()
        Dim utils As New MapWinGIS.Utils()
        Dim image As New MapWinGIS.Image()
        Dim colorscheme As New MapWinGIS.GridColorScheme()
        'Set the grid color scheme to use when creating an image from the grid
        colorscheme.UsePredefined(grid.Minimum, grid.Maximum, MapWinGIS.PredefinedColorScheme.SummerMountains)
        'Create an image from the grid using the grid color scheme
        image = utils.GridToImage(grid, colorscheme, Me)
    End Sub
  

VB 6 Usage
Function GridToImage(Grid As Grid, cScheme As GridColorScheme, Optional cBack As ICallback) As Image
            Parameters

Grid

The grid to use to create the image.
cScheme The grid color scheme to use to create an image from the grid.
cBack Optional. The ICallback object which will receive progress and error messages while the image is being created from the grid.
ReturnValue The image created from the grid.

Sample Code

    Private Sub GridToImage()
        Dim grid As New MapWinGIS.grid
        Dim utils As New MapWinGIS.utils
        Dim image As New MapWinGIS.image
        Dim colorscheme As New MapWinGIS.GridColorScheme
        'Set the grid color scheme to use when creating an image from the grid
        colorscheme.UsePredefined grid.Minimum, grid.Maximum, MapWinGIS.PredefinedColorScheme.SummerMountains
        'Create an image from the grid using the grid color scheme
        Set image = utils.GridToImage(grid, colorscheme, Me)
    End Sub

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

This page has been accessed 1,539 times. This page was last modified on 9 November 2005, at 17:35.