Provides a graphics buffer for double buffering.
`true`by default.
Protected Member Functions | |
| buffered_graphics (const xtd::drawing::graphics &buffered_graphics_surface, std::optional< xtd::drawing::graphics > target_graphics, intptr target_dc, const xtd::drawing::point &target_location, xtd::drawing::size virtual_size) | |
Public Properties | |
| auto | graphics () const noexcept -> const xtd::drawing::graphics & |
| Gets a xtd::drawing::graphics object that outputs to the graphics buffer. | |
| auto | graphics () noexcept -> xtd::drawing::graphics & |
Public Methods | |
| auto | render () -> void |
| Writes the contents of the graphics buffer to the default device. | |
| auto | render (xtd::drawing::graphics &target) -> void |
| Writes the contents of the graphics buffer to the specified xtd::drawing::graphics object. | |
| auto | render (intptr target_dc) -> void |
| Writes the contents of the graphics buffer to the device context associated with the specified intptr handle. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | equals (const object &obj) const noexcept -> bool |
| Determines whether the specified object is equal to the current object. | |
| virtual auto | get_hash_code () const noexcept -> xtd::usize |
| Serves as a hash function for a particular type. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
|
nodiscardnoexcept |
Gets a xtd::drawing::graphics object that outputs to the graphics buffer.
| auto xtd::drawing::buffered_graphics::render | ( | ) | -> void |
Writes the contents of the graphics buffer to the default device.
| auto xtd::drawing::buffered_graphics::render | ( | xtd::drawing::graphics & | target | ) | -> void |
Writes the contents of the graphics buffer to the specified xtd::drawing::graphics object.
| target | A xtd::drawing::graphics object to which to write the contents of the graphics buffer. |
| auto xtd::drawing::buffered_graphics::render | ( | intptr | target_dc | ) | -> void |
Writes the contents of the graphics buffer to the device context associated with the specified intptr handle.
| target_dc | An intptr that points to the device context to which to write the contents of the graphics buffer. |