xtd 0.2.0
image_renderer.h
Go to the documentation of this file.
1 #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/ustring>
13 #include <memory>
14 #include <vector>
15 
17 namespace xtd {
19  namespace forms {
33  class forms_export_ image_renderer static_ {
34  public:
36 
46  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);
55  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);
57 
58  private:
59  static xtd::drawing::rectangle compute_image_bounds(const xtd::drawing::rectangle& rectangle, const xtd::drawing::size& image_size, content_alignment align) noexcept;
60  };
61  }
62 }
The image model allows you to specify the alignment of an image.
Definition: iimage_model.h:36
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:37
Contains xtd::forms::style_sheets::iimage_model class.
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Provides image renderer methods.
Definition: image_renderer.h:33
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
content_alignment
Specifies alignment of content on the drawing surface.
Definition: content_alignment.h:19
Stores a set of four integers that represent the location and size of a rectangle.
Definition: rectangle.h:44
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:48
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:70