xtd 0.2.0
Loading...
Searching...
No Matches
image_renderer.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
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.hpp:49
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:70
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31
Provides image renderer methods.
Definition image_renderer.hpp: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.hpp:38
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
content_alignment
Specifies alignment of content on the drawing surface.
Definition content_alignment.hpp: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.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10