Specifies the attributes of a bitmap image. The xtd::drawing::imaging::bitmap_data struct is used by the xtd::drawing::bitmap::lock_bits and xtd::drawing::bitmap::unlock_bits methods of the xtd::drawing::bitmap class. Not inheritable.
Public Properties | |
| int32 | height |
| Gets or sets the pixel height of the xtd::drawing::bitmap object. Also sometimes referred to as the number of scan lines. | |
| xtd::drawing::imaging::pixel_format | pixel_format |
| Gets or sets the format of the pixel information in the xtd::drawing::bitmap object that returned this xtd::drawing::imaging::bitmap_data object. | |
| int32 | reserved |
| Reserved. Do not use. | |
| intptr | scan0 |
| Gets or sets or sets the address of the first pixel data in the bitmap. This can also be thought of as the first scan line in the bitmap. | |
| int32 | stride |
| Gets or sets the stride width (also called scan width) of the xtd::drawing::bitmap object. | |
| int32 | width |
| Gets or sets or sets the pixel width of the xtd::drawing::bitmap object. This can also be thought of as the number of pixels in one scan line. | |
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. | |
| int32 xtd::drawing::imaging::bitmap_data::height |
Gets or sets the pixel height of the xtd::drawing::bitmap object. Also sometimes referred to as the number of scan lines.
| value | The pixel height of the xtd::drawing::bitmap object. |
| xtd::drawing::imaging::pixel_format xtd::drawing::imaging::bitmap_data::pixel_format |
Gets or sets the format of the pixel information in the xtd::drawing::bitmap object that returned this xtd::drawing::imaging::bitmap_data object.
| value | A xtd::drawing::imaging::pixel_format that specifies the format of the pixel information in the associated xtd::drawing::bitmap object. |
| int32 xtd::drawing::imaging::bitmap_data::reserved |
Reserved. Do not use.
| value | Reserved. Do not use. |
| intptr xtd::drawing::imaging::bitmap_data::scan0 |
Gets or sets or sets the address of the first pixel data in the bitmap. This can also be thought of as the first scan line in the bitmap.
| value | The address of the first pixel data in the bitmap. |
| int32 xtd::drawing::imaging::bitmap_data::stride |
Gets or sets the stride width (also called scan width) of the xtd::drawing::bitmap object.
| value | The stride width, in bytes, of the xtd::drawing::bitmap object. |
| int32 xtd::drawing::imaging::bitmap_data::width |
Gets or sets or sets the pixel width of the xtd::drawing::bitmap object. This can also be thought of as the number of pixels in one scan line.
| value | The pixel width of the xtd::drawing::bitmap object. |