NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ImageList.DrawImage

Draw the image indicated by the given index using the location, size and raster op code specified. The image is stretched or compressed as necessary to fit the bounds provided.

[Visual Basic]
Public Sub DrawImage( _
   ByVal g As Graphics, _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal rop As Integer, _
   ByVal index As Integer _
)
[C#]
public void DrawImage(
   Graphics g,
   int x,
   int y,
   int width,
   int height,
   int rop,
   int index
);
[C++]
public: void DrawImage(
   Graphics* g,
   int x,
   int y,
   int width,
   int height,
   int rop,
   int index
);
[JScript]
public function DrawImage(
   g : Graphics,
   x : int,
   y : int,
   width : int,
   height : int,
   rop : int,
   index : int
);

Parameters

g
Graphics object to draw into.
x
x portion of where to draw the image.
y
y portion of where to draw the image.
width
width of destination image
height
height of destination image
rop
numerical raster op code
index
image in the ImageList to draw

See Also

ImageList Class | ImageList Members | System.WinForms Namespace