'Declaration
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 GdPictureColor _ ) As GdPictureStatus
public GdPictureStatus DrawGrid( int ImageID, int DstLeft, int DstTop, int Width, int Height, int HorizontalStep, int VerticalStep, int PenWidth, GdPictureColor PenColor )
public function DrawGrid( ImageID: Integer; DstLeft: Integer; DstTop: Integer; Width: Integer; Height: Integer; HorizontalStep: Integer; VerticalStep: Integer; PenWidth: Integer; PenColor: GdPictureColor ): GdPictureStatus;
public function DrawGrid( ImageID : int, DstLeft : int, DstTop : int, Width : int, Height : int, HorizontalStep : int, VerticalStep : int, PenWidth : int, PenColor : GdPictureColor ) : GdPictureStatus;
public: GdPictureStatus DrawGrid( int ImageID, int DstLeft, int DstTop, int Width, int Height, int HorizontalStep, int VerticalStep, int PenWidth, GdPictureColor PenColor )
public: GdPictureStatus DrawGrid( int ImageID, int DstLeft, int DstTop, int Width, int Height, int HorizontalStep, int VerticalStep, int PenWidth, GdPictureColor PenColor )
Parameters
- 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 of the grid. A suitable color value can be obtained by using the ARGB() method.
Return Value
A member of the GdPictureStatus enumeration.