70 return argb {.a =
a, .r =
r, .g =
g, .b =
b};
83 return argb {.a =
static_cast<xtd::byte>((value & 0xFF000000) >> 24), .
r =
static_cast<xtd::byte>((value & 0x00FF0000) >> 16), .g =
static_cast<xtd::byte>((value & 0x0000FF00) >> 8), .
b =
static_cast<xtd::byte>(value & 0x000000FF)};
88 friend auto operator <<(std::ostream& os,
const argb& value) -> std::ostream& {
89 return os <<
xtd::string::format(
"argb [a = {}, r = {}, g = {}, b = {}]", value.a, value.r, value.g, value.b);
std::uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
std::uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
The argb struct.
Definition argb.hpp:22
static auto from_argb(const argb &value) noexcept -> xtd::drawing::argb
Creates a xtd::argb struct from the specified axtd::drawing::argb value.
Definition argb.hpp:75
static auto from_argb(xtd::byte a, xtd::byte r, xtd::byte g, xtd::byte b) noexcept -> xtd::drawing::argb
Creates a xtd::argb struct from the specified a, r, g, and b byte values.
Definition argb.hpp:69
auto to_uint32() const noexcept -> xtd::uint32
Gets the 32-bit ARGB value of this xtd::drawing::argb struct.
Definition argb.hpp:45
static auto from_uint32(uint32 value) noexcept -> xtd::drawing::argb
Creates a xtd::argb struct from the specified unsigned integer value.
Definition argb.hpp:82
xtd::byte a
Gets or sets the alpha component value of this xtd::drawing::argb struct.
Definition argb.hpp:28
operator xtd::uint32() const noexcept
Gets the 32-bit ARGB value of this xtd::drawing::argb struct.
Definition argb.hpp:55
xtd::byte g
Gets or sets the green component value of this xtd::drawing::argb struct.
Definition argb.hpp:34
xtd::byte r
Gets or sets the red component value of this xtd::drawing::argb struct.
Definition argb.hpp:31
xtd::byte b
Gets or sets the blue component value of this xtd::drawing::argb struct.
Definition argb.hpp:37