You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Drawing (Shapes) > DrawGrid Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.DrawGrid Method

Draws a grid on a GdPicture image.

C#
public GdPictureStatus DrawGrid(
    int ImageID, 
    int DstLeft, 
    int DstTop, 
    int Width, 
    int Height, 
    int HorizontalStep, 
    int VerticalStep, 
    int PenWidth, 
    Color PenColor
);
Visual Basic
Public Function DrawGrid(
    ByVal ImageID As Integer, 
    ByVal DstLeft As Integer, 
    ByVal DstTop As Integer, 
    ByVal Width As Integer, 
    ByVal Height As Integer, 
    ByVal HorizontalStep As Integer, 
    ByVal VerticalStep As Integer, 
    ByVal PenWidth As Integer, 
    ByVal PenColor As Color
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
DstLeft 
Specifies the x-coordinate of the starting point of the grid.  
DstTop 
Specifies the y-coordinate of the starting point of the grid.  
Width 
Width of the grid in pixel.  
Height 
Height of the grid in pixel.  
HorizontalStep 
Space in pixel between each columns.  
VerticalStep 
Space in pixel between each rows.  
PenWidth 
With of the pen (in pixel) used to draw the grid.  
PenColor 
Color Object. You can build a Color Object using the ARGB() function. Pen color used to draw the grid.  
Returns

A member of the GdPictureStatus enumeration.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.