Provides a graphics buffer for double buffering.
class drawing_export_ buffered_graphics :
public xtd::object - Inheritance
- xtd::object → xtd::drawing::buffered_graphics
- Namespace
- xtd::drawing
- Library
- xtd.drawing
- Note
- The simplest way to use double buffering is to set the xtd::forms::control_styles::optimized_double_buffer control style flag on a control using the xtd::control::set_style method. Setting the xtd::forms::control_styles::optimized_double_buffer flag for a control redirects all painting for the control through a default graphics buffer, without requiring any additional code. This flag is set to
true
by default.
|
| object ()=default |
| Create a new instance of the ultimate base class object. More...
|
|
bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More...
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More...
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More...
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More...
|
|
virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More...
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More...
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More...
|
|
◆ graphics()
◆ render() [1/3]
void xtd::drawing::buffered_graphics::render |
( |
| ) |
|
Writes the contents of the graphics buffer to the default device.
◆ render() [2/3]
◆ render() [3/3]
void xtd::drawing::buffered_graphics::render |
( |
intptr |
target_dc | ) |
|
Writes the contents of the graphics buffer to the device context associated with the specified intptr handle.
- Parameters
-
target_dc | An intptr that points to the device context to which to write the contents of the graphics buffer. |
The documentation for this class was generated from the following file: