xtd - Reference Guide 0.2.0
xtd::forms::image_renderer Class Reference

#include <image_renderer.h>

Definition

Provides image renderer methods.

class forms_export_ image_renderer static_
Inheritance
xtd::static → xtd::forms::image_renderer
Namespace
xtd::forms
Library
xtd.forms

Moethods

static void draw_image (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, const xtd::drawing::image &image, bool enabled, const xtd::drawing::color &back_color, const xtd::forms::style_sheets::iimage_model &data)
 Draws an image in the specified bounds. More...
 
static void 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)
 Draws an image in the specified bounds. More...
 

Member Function Documentation

◆ draw_image() [1/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,
const xtd::drawing::color back_color,
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.
back_colorThe back color is usedd to draw image disabled.
dataContains the informations needed to draw image.
Remarks
if image is .xtd::drawing::image::empty, nothing is drawing.

◆ 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.

The documentation for this class was generated from the following file: