xtd 0.2.0
Loading...
Searching...
No Matches
image_renderer.h
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.h"
8#include <xtd/drawing/graphics>
9#include <xtd/drawing/image>
10#include <xtd/drawing/rectangle>
11#include <xtd/static>
12#include <xtd/string>
13#include <memory>
14#include <vector>
15
17namespace xtd {
19 namespace forms {
36 public:
38
48 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);
57 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);
59
60 private:
61 static xtd::drawing::rectangle compute_image_bounds(const xtd::drawing::rectangle& rectangle, const xtd::drawing::size& image_size, content_alignment align) noexcept;
62 };
63 }
64}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.h:49
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:44
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:31
Provides image renderer methods.
Definition image_renderer.h:35
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.
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.
The image model allows you to specify the alignment of an image.
Definition iimage_model.h:38
#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
content_alignment
Specifies alignment of content on the drawing surface.
Definition content_alignment.h:21
Contains xtd::forms::style_sheets::iimage_model class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10