xtd 0.2.0
Loading...
Searching...
No Matches

◆ draw_image() [2/2]

static void xtd::forms::image_renderer::draw_image ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
const xtd::drawing::image image,
bool  enabled,
float  brightness,
const xtd::forms::style_sheets::iimage_model data 
)
static

Draws an image in the specified bounds.

Parameters
graphicsThe Graphics used to draw an image.
boundsThe xtd::drawing::rectangle that specifies the bounds of the image.
imageThe xtd::drawing::image that specifies the image to draw.
enableIf is true the image is drawing normaly; otherwise the image is drawing in disable style.
brightnessThe brightness is usedd to draw image disabled.
dataContains the informations needed to draw image.
Remarks
if image is .xtd::drawing::image::empty, nothing is drawing.