Encapsulates a xtd::drawing::brush with a radial gradient. This class cannot be inherited.
Public Constructors | |
radial_gradient_brush () | |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with default values. | |
radial_gradient_brush (const xtd::drawing::point ¢er, const xtd::drawing::color &color1, const xtd::drawing::color &color2) | |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point and colors. | |
radial_gradient_brush (const xtd::drawing::point_f ¢er, const xtd::drawing::color &color1, const xtd::drawing::color &color2) | |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point and colors. | |
radial_gradient_brush (const xtd::drawing::point ¢er, const xtd::drawing::color &color1, const xtd::drawing::color &color2, float radius) | |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point ,colors and radius. | |
radial_gradient_brush (const xtd::drawing::point_f ¢er, const xtd::drawing::color &color1, const xtd::drawing::color &color2, float radius) | |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point, colors and radiuus. | |
radial_gradient_brush (const xtd::drawing::point ¢er, const std::vector< xtd::drawing::color > &radial_colors) | |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point and colors. | |
radial_gradient_brush (const xtd::drawing::point_f ¢er, const std::vector< xtd::drawing::color > &radial_colors) | |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point and colors. | |
radial_gradient_brush (const xtd::drawing::point ¢er, const std::vector< xtd::drawing::color > &radial_colors, float radius) | |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center poin, colors and radius. | |
radial_gradient_brush (const xtd::drawing::point_f ¢er, const std::vector< xtd::drawing::color > &radial_colors, float radius) | |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point, colors and radius. | |
Public Properties | |
xtd::drawing::point_f | center_point () const noexcept |
Gets the center point of the radial gradient. | |
radial_gradient_brush & | center_point (const xtd::drawing::point_f &value) noexcept |
Gets the center point of the radial gradient. | |
radial_gradient_brush & | center_point (const xtd::drawing::point &value) noexcept |
Sets the center point of the radial gradient. | |
xtd::drawing::point_f | focal_point () const noexcept |
Gets the focal point of the radial gradient. | |
radial_gradient_brush & | focal_point (const xtd::drawing::point_f &value) noexcept |
Sets the focal point of the radial gradient. | |
radial_gradient_brush & | focal_point (const xtd::drawing::point &value) noexcept |
Sets the focal point of the radial gradient. | |
const xtd::drawing::drawing_2d::gradient_stop_collection & | radial_colors () const noexcept |
Gets the starting and ending colors of the gradient. | |
xtd::drawing::drawing_2d::radial_gradient_brush & | radial_colors (const xtd::drawing::drawing_2d::gradient_stop_collection &radial_colors) |
sets the starting and ending colors of the gradient. | |
float | radius () const noexcept |
Gets the angle of the gradient. | |
radial_gradient_brush & | radius (float value) noexcept |
Sets the radius of the gradient. | |
Public Methods | |
bool | equals (const radial_gradient_brush &value) const noexcept override |
bool | equals (const brush &value) const noexcept override |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
template<typename object_a_t , typename object_b_t > | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::drawing::brush | |
intptr | handle () const noexcept |
Gets the handle of the brush. | |
bool | equals (const brush &value) const noexcept override |
xtd::string | to_string () const noexcept override |
Converts this brush object to a human-readable string. | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<typename object_t > | |
xtd::uptr< object_t > | memberwise_clone () const |
Creates a shallow copy of the current object. | |
Public Member Functions inherited from xtd::iequatable< brush > | |
virtual bool | equals (const brush &) const noexcept=0 |
Indicates whether the current object is equal to another object of the same type. | |
Public Member Functions inherited from xtd::iequatable< radial_gradient_brush > | |
virtual bool | equals (const radial_gradient_brush &) const noexcept=0 |
Indicates whether the current object is equal to another object of the same type. | |
Static Public Member Functions inherited from xtd::drawing::brush | |
template<typename object_a_t , typename object_b_t > | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
Static Public Member Functions inherited from xtd::object | |
template<typename object_a_t , typename object_b_t > | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
template<typename object_a_t , typename object_b_t > | |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
Protected Member Functions inherited from xtd::drawing::brush | |
brush () | |
Initialize a new instance of brush class. | |
void | set_native_brush (intptr brush) |
In a derived class, sets a reference to a GDI+ brush object. | |
xtd::drawing::drawing_2d::radial_gradient_brush::radial_gradient_brush | ( | ) |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with default values.
xtd::drawing::drawing_2d::radial_gradient_brush::radial_gradient_brush | ( | const xtd::drawing::point & | center, |
const xtd::drawing::color & | color1, | ||
const xtd::drawing::color & | color2 | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point and colors.
center | A xtd::drawing::point structure that represents the center point of the radial gradient. |
color1 | A xtd::drawing::color structure that represents the starting color of the radial gradient. |
color2 | A xtd::drawing::color structure that represents the ending color of the radial gradient. |
xtd::drawing::drawing_2d::radial_gradient_brush::radial_gradient_brush | ( | const xtd::drawing::point_f & | center, |
const xtd::drawing::color & | color1, | ||
const xtd::drawing::color & | color2 | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point and colors.
center | A xtd::drawing::point structure that represents the center point of the radial gradient. |
color1 | A xtd::drawing::color structure that represents the starting color of the radial gradient. |
color2 | A xtd::drawing::color structure that represents the ending color of the radial gradient. |
xtd::drawing::drawing_2d::radial_gradient_brush::radial_gradient_brush | ( | const xtd::drawing::point & | center, |
const xtd::drawing::color & | color1, | ||
const xtd::drawing::color & | color2, | ||
float | radius | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point ,colors and radius.
center | A xtd::drawing::point structure that represents the center point of the radial gradient. |
color1 | A xtd::drawing::color structure that represents the starting color of the radial gradient. |
color2 | A xtd::drawing::color structure that represents the ending color of the radial gradient. |
radius | A float hat represents the radius of the radial gradient. |
xtd::drawing::drawing_2d::radial_gradient_brush::radial_gradient_brush | ( | const xtd::drawing::point_f & | center, |
const xtd::drawing::color & | color1, | ||
const xtd::drawing::color & | color2, | ||
float | radius | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point, colors and radiuus.
center | A xtd::drawing::point structure that represents the center point of the radial gradient. |
color1 | A xtd::drawing::color structure that represents the starting color of the radial gradient. |
color2 | A xtd::drawing::color structure that represents the ending color of the radial gradient. |
radius | A float hat represents the radius of the radial gradient. |
xtd::drawing::drawing_2d::radial_gradient_brush::radial_gradient_brush | ( | const xtd::drawing::point & | center, |
const std::vector< xtd::drawing::color > & | radial_colors | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point and colors.
center | A xtd::drawing::point structure that represents the center point of the radial gradient. |
color1 | A xtd::drawing::color structure that represents the starting color of the radial gradient. |
color2 | A xtd::drawing::color structure that represents the ending color of the radial gradient. |
xtd::drawing::drawing_2d::radial_gradient_brush::radial_gradient_brush | ( | const xtd::drawing::point_f & | center, |
const std::vector< xtd::drawing::color > & | radial_colors | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point and colors.
center | A xtd::drawing::point structure that represents the center point of the radial gradient. |
color1 | A xtd::drawing::color structure that represents the starting color of the radial gradient. |
color2 | A xtd::drawing::color structure that represents the ending color of the radial gradient. |
xtd::drawing::drawing_2d::radial_gradient_brush::radial_gradient_brush | ( | const xtd::drawing::point & | center, |
const std::vector< xtd::drawing::color > & | radial_colors, | ||
float | radius | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center poin, colors and radius.
center | A xtd::drawing::point structure that represents the center point of the radial gradient. |
color1 | A xtd::drawing::color structure that represents the starting color of the radial gradient. |
color2 | A xtd::drawing::color structure that represents the ending color of the radial gradient. |
radius | A float hat represents the radius of the radial gradient. |
xtd::drawing::drawing_2d::radial_gradient_brush::radial_gradient_brush | ( | const xtd::drawing::point_f & | center, |
const std::vector< xtd::drawing::color > & | radial_colors, | ||
float | radius | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d::radial_gradient_brush class with the specified center point, colors and radius.
center | A xtd::drawing::point structure that represents the center point of the radial gradient. |
color1 | A xtd::drawing::color structure that represents the starting color of the radial gradient. |
color2 | A xtd::drawing::color structure that represents the ending color of the radial gradient. |
radius | A float hat represents the radius of the radial gradient. |
|
noexcept |
Gets the center point of the radial gradient.
|
noexcept |
Gets the center point of the radial gradient.
value | A xtd::drawing::point_f structure that specifies the center point of the radial gradient. |
|
noexcept |
Sets the center point of the radial gradient.
value | A xtd::drawing::point_f structure that specifies the center point of the radial gradient. |
|
noexcept |
Gets the focal point of the radial gradient.
|
noexcept |
Sets the focal point of the radial gradient.
value | A xtd::drawing::point_f structure that specifies the focal point of the radial gradient. |
|
noexcept |
Sets the focal point of the radial gradient.
value | A xtd::drawing::point_f structure that specifies the focal point of the radial gradient. |
|
noexcept |
Gets the starting and ending colors of the gradient.
xtd::drawing::drawing_2d::radial_gradient_brush & xtd::drawing::drawing_2d::radial_gradient_brush::radial_colors | ( | const xtd::drawing::drawing_2d::gradient_stop_collection & | radial_colors | ) |
sets the starting and ending colors of the gradient.
radial_colors | An array of two xtd::drawing::color structures that represents the starting and ending colors of the gradient. |
|
noexcept |
Gets the angle of the gradient.
|
noexcept |
Sets the radius of the gradient.
value | A float that specifies the radius of the radial gradient. |
|
virtualnoexcept |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
Reimplemented from xtd::drawing::brush.
|
inlinestaticnoexcept |
Determines whether the specified object instances are considered equal.
object_a | The first object to compare. |
object_b | The second object to compare. |