xtd 1.0.0
Loading...
Searching...
No Matches
xtd::drawing::argb Struct Reference

Definition

The argb struct.

struct argb;
The argb struct.
Definition argb.hpp:22
Namespace
xtd::drawing
Library
xtd.drawing

Public Properties

xtd::byte a
 Gets or sets the alpha component value of this xtd::drawing::argb struct.
xtd::byte r
 Gets or sets the red component value of this xtd::drawing::argb struct.
xtd::byte g
 Gets or sets the green component value of this xtd::drawing::argb struct.
xtd::byte b
 Gets or sets the blue component value of this xtd::drawing::argb struct.

Public Methods

auto to_uint32 () const noexcept -> xtd::uint32
 Gets the 32-bit ARGB value of this xtd::drawing::argb struct.

Public Operators

 operator xtd::uint32 () const noexcept
 Gets the 32-bit ARGB value of this xtd::drawing::argb struct.

Public Static Methods

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.
static auto from_argb (const argb &value) noexcept -> xtd::drawing::argb
 Creates a xtd::argb struct from the specified axtd::drawing::argb value.
static auto from_uint32 (uint32 value) noexcept -> xtd::drawing::argb
 Creates a xtd::argb struct from the specified unsigned integer value.

Member Function Documentation

◆ to_uint32()

auto xtd::drawing::argb::to_uint32 ( ) const -> xtd::uint32
inlinenodiscardnoexcept

Gets the 32-bit ARGB value of this xtd::drawing::argb struct.

Returns
The 32-bit ARGB value of this xtd::drawing::argb.

◆ operator xtd::uint32()

xtd::drawing::argb::operator xtd::uint32 ( ) const
inlinenodiscardnoexcept

Gets the 32-bit ARGB value of this xtd::drawing::argb struct.

Returns
The 32-bit ARGB value of this xtd::drawing::argb.

◆ from_argb() [1/2]

auto xtd::drawing::argb::from_argb ( xtd::byte a,
xtd::byte r,
xtd::byte g,
xtd::byte b ) -> xtd::drawing::argb
inlinestaticnodiscardnoexcept

Creates a xtd::argb struct from the specified a, r, g, and b byte values.

Parameters
aThe a byte value.
rThe r byte value.
gThe g byte value.
bThe b byte value.
Returns
an xtd::drawing::argb value that contains decomposed unsigned integer value.

◆ from_argb() [2/2]

auto xtd::drawing::argb::from_argb ( const argb & value) -> xtd::drawing::argb
inlinestaticnodiscardnoexcept

Creates a xtd::argb struct from the specified axtd::drawing::argb value.

Parameters
valueThe argb value.
Returns
an xtd::drawing::argb value that contains decomposed unsigned integer value.

◆ from_uint32()

auto xtd::drawing::argb::from_uint32 ( uint32 value) -> xtd::drawing::argb
inlinestaticnodiscardnoexcept

Creates a xtd::argb struct from the specified unsigned integer value.

Parameters
valueThe unsigned integer value.
Returns
an xtd::drawing::argb value that contains decomposed unsigned integer value.

Member Data Documentation

◆ a

xtd::byte xtd::drawing::argb::a

Gets or sets the alpha component value of this xtd::drawing::argb struct.

Parameters
abyte The alpha component value of this xtd::drawing::argb.

◆ r

xtd::byte xtd::drawing::argb::r

Gets or sets the red component value of this xtd::drawing::argb struct.

Parameters
rbyte The red component value of this xtd::drawing::argb.

◆ g

xtd::byte xtd::drawing::argb::g

Gets or sets the green component value of this xtd::drawing::argb struct.

Parameters
rbyte The green component value of this xtd::drawing::argb.

◆ b

xtd::byte xtd::drawing::argb::b

Gets or sets the blue component value of this xtd::drawing::argb struct.

Parameters
rbyte The blue component value of this xtd::drawing::argb.

The documentation for this struct was generated from the following file:
  • xtd.drawing/include/xtd/drawing/argb.hpp