BCGControlBar Library for .NET
DrawButtonImage Method




The graphics to draw on.
The x-coordinate of the upper-left corner of the image to draw.
The y-coordinate of the upper-left corner of the image to draw.
An image to draw.
Specifies if the image should be redrawn as faded.
Specifies if it is necessary to draw a shadow for the image.
Specifies if the image should be drawn as disabled for a disabled toolbar button.
Specifies if the large icon mode should be ignored on redrawing of the image.
Called by the framework to draw an image on the button surface.
Syntax
'Declaration
 
Public Function DrawButtonImage( _
   ByVal graphics As Graphics, _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal image As Image, _
   ByVal bFadeImage As Boolean, _
   ByVal bShadow As Boolean, _
   ByVal bDisabled As Boolean, _
   ByVal forceIgnoreLargeIcons As Boolean _
) As Boolean
'Usage
 
Dim instance As ToolbarButton
Dim graphics As Graphics
Dim x As Integer
Dim y As Integer
Dim image As Image
Dim bFadeImage As Boolean
Dim bShadow As Boolean
Dim bDisabled As Boolean
Dim forceIgnoreLargeIcons As Boolean
Dim value As Boolean
 
value = instance.DrawButtonImage(graphics, x, y, image, bFadeImage, bShadow, bDisabled, forceIgnoreLargeIcons)
public bool DrawButtonImage( 
   Graphics graphics,
   int x,
   int y,
   Image image,
   bool bFadeImage,
   bool bShadow,
   bool bDisabled,
   bool forceIgnoreLargeIcons
)
public: bool DrawButtonImage( 
   Graphics* graphics,
   int x,
   int y,
   Image* image,
   bool bFadeImage,
   bool bShadow,
   bool bDisabled,
   bool forceIgnoreLargeIcons
) 
public:
bool DrawButtonImage( 
   Graphics^ graphics,
   int x,
   int y,
   Image^ image,
   bool bFadeImage,
   bool bShadow,
   bool bDisabled,
   bool forceIgnoreLargeIcons
) 

Parameters

graphics
The graphics to draw on.
x
The x-coordinate of the upper-left corner of the image to draw.
y
The y-coordinate of the upper-left corner of the image to draw.
image
An image to draw.
bFadeImage
Specifies if the image should be redrawn as faded.
bShadow
Specifies if it is necessary to draw a shadow for the image.
bDisabled
Specifies if the image should be drawn as disabled for a disabled toolbar button.
forceIgnoreLargeIcons
Specifies if the large icon mode should be ignored on redrawing of the image.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ToolbarButton Class
ToolbarButton Members

Send Feedback