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 | |
const xtd::drawing::size & | maximum_buffer () const noexcept |
Gets the maximum size of the buffer to use. | |
buffered_graphics_context & | maximum_buffer (const xtd::drawing::size &value) |
Sets the maximum size of the buffer to use. | |
Public Methods | |
void | allocate (const xtd::drawing::graphics &target_graphics, const xtd::drawing::rectangle &targat_rectangle) |
void | allocate (intptr target_dc, const xtd::drawing::rectangle &targat_rectangle) |
void | invalidate () |
Destroy of the current graphics buffer, if a buffer has been allocated and has not yet been destroyed. | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
Creates a shallow copy of the current object. | |
virtual xtd::ustring | to_string () const noexcept |
Returns a sxd::ustring that represents the current object. | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the BufferedGraphicsContext class.
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.
|
noexcept |
Gets the maximum size of the buffer to use.
buffered_graphics_context & xtd::drawing::buffered_graphics_context::maximum_buffer | ( | const xtd::drawing::size & | value | ) |
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. |