Provides methods for creating graphics buffers that can be used for double buffering.
Public Constructors | |
| buffered_graphics_context ()=default | |
| Initializes a new instance of the BufferedGraphicsContext class. | |
Public Properties | |
| auto | maximum_buffer () const noexcept -> const xtd::drawing::size & |
| Gets the maximum size of the buffer to use. | |
| auto | maximum_buffer (const xtd::drawing::size &value) -> buffered_graphics_context & |
| Sets the maximum size of the buffer to use. | |
Public Methods | |
| auto | allocate (const xtd::drawing::graphics &target_graphics, const xtd::drawing::rectangle &targat_rectangle) -> void |
| auto | allocate (intptr target_dc, const xtd::drawing::rectangle &targat_rectangle) -> void |
| void | invalidate () |
| Destroy of the current graphics buffer, if a buffer has been allocated and has not yet been destroyed. | |
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. | |
|
default |
Initializes a new instance of the BufferedGraphicsContext class.
|
nodiscardnoexcept |
Gets the maximum size of the buffer to use.
| auto xtd::drawing::buffered_graphics_context::maximum_buffer | ( | const xtd::drawing::size & | value | ) | -> buffered_graphics_context & |
Sets the maximum size of the buffer to use.
| value | A xtd::drawing::size indicating the maximum size of the buffer dimensions. |
| xtd::argument_exception | The height or width of the size is less than or equal to zero. |
| void xtd::drawing::buffered_graphics_context::invalidate | ( | ) |
Destroy of the current graphics buffer, if a buffer has been allocated and has not yet been destroyed.