xtd 0.2.0
Loading...
Searching...
No Matches
bitmap_data.h
Go to the documentation of this file.
1
4#pragma once
5#include "pixel_format.h"
6#include <xtd/object>
7#include <xtd/types>
8
10namespace xtd {
12 namespace drawing {
15 namespace imaging {
22 class bitmap_data final : public object {
23 public:
25
28 bitmap_data() = default;
30
32 bitmap_data(const bitmap_data&) = default;
33 bitmap_data& operator =(const bitmap_data&) = default;
35
37
41 int32 height() const noexcept;
45 bitmap_data& height(int32 value) noexcept;
46
50 xtd::drawing::imaging::pixel_format pixel_format() const noexcept;
55 bitmap_data& pixel_format(xtd::drawing::imaging::pixel_format value) noexcept;
56
59 int32 reserved() const noexcept;
63 bitmap_data& reserved(int32 value) noexcept;
64
67 intptr scan0() const noexcept;
71 bitmap_data& scan0(intptr value) noexcept;
72
76 int32 stride() const noexcept;
81 bitmap_data& stride(int32 value) noexcept;
82
85 int32 width() const noexcept;
89 bitmap_data& width(int32 value) noexcept;
91
92 private:
93 int32 height_ = 0;
94 xtd::drawing::imaging::pixel_format pixel_format_ = xtd::drawing::imaging::pixel_format::undefined;
95 int32 reserved_ = 0;
96 intptr scan0_ = 0;
97 int32 stride_ = 0;
98 int32 width_ = 0;
99 };
100 }
101 }
102}
Specifies the attributes of a bitmap image. The xtd::drawing::imaging::bitmap_data class is used by t...
Definition bitmap_data.h:22
int32 reserved() const noexcept
Reserved. Do not use.
int32 stride() const noexcept
Gets the stride width (also called scan width) of the xtd::drawing::bitmap object.
bitmap_data()=default
Initializes a new instance of the xtd::drawing::imaging::bitmap_data class.
int32 height() const noexcept
Gets the pixel height of the xtd::drawing::bitmap object. Also sometimes referred to as the number of...
int32 width() const noexcept
Gets or sets the pixel width of the xtd::drawing::bitmap object. This can also be thought of as the n...
intptr scan0() const noexcept
Gets or sets the address of the first pixel data in the bitmap. This can also be thought of as the fi...
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.h:23
pixel_format
Specifies the format of the color data for each pixel in the image.
Definition pixel_format.h:23
@ undefined
The pixel format is undefined.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::drawing::imaging::pixel_format enum class.