xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::image_renderer Class Reference
Inheritance diagram for xtd::forms::image_renderer:
xtd::static_object

Definition

Provides image renderer methods.

Provides image renderer methods.
Definition image_renderer.h:35
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
Inheritance
xtd::static → xtd::forms::image_renderer
Header
#include <xtd/forms/image_renderer>
Namespace
xtd::forms
Library
xtd.forms

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

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: