Draws an image on a System.Windows.Forms.ToolStripItem.
- e
- A System.Windows.Forms.ToolStripItemImageRenderEventArgs that contains the data to draw the image.
The ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs) method provides the entry point to the rendering code for an image. Use this method to draw an image when overriding the ToolStripItem.OnPaint(PaintEventArgs) method or to force the image to be drawn in a custom System.Windows.Forms.ToolStripRenderer. To change the way the image is rendered, override the OnDrawItem method in a class derived from System.Windows.Forms.ToolStripRenderer.