Contains brush native API.
- Namespace
- xtd::drawing::native
- Library
- xtd.drawing.native
- Warning
- Internal use only
|
static intptr | create () |
| Creates brush.
|
|
static void | destroy (intptr brush) |
| Destroys brush.
|
|
static void | solid (intptr brush, xtd::byte a, xtd::byte r, xtd::byte g, xtd::byte b) |
| Sets solid color brush.
|
|
static void | conical_gradient (intptr brush, int32 center_x, int32 center_y, const std::vector< std::tuple< xtd::byte, xtd::byte, xtd::byte, xtd::byte, float > > &colors, float angle) |
| Sets conical gradient brush.
|
|
static void | linear_gradient (intptr brush, int32 x1, int32 y1, int32 x2, int32 y2, const std::vector< std::tuple< xtd::byte, xtd::byte, xtd::byte, xtd::byte, float > > &colors, float angle) |
| Sets linear gradient brush.
|
|
static void | radial_gradient (intptr brush, int32 center_x, int32 center_y, int32 focal_x, int32 focal_y, const std::vector< std::tuple< xtd::byte, xtd::byte, xtd::byte, xtd::byte, float > > &colors, float radius) |
| Sets radial gradient brush.
|
|
static void | texture (intptr brush, intptr texture) |
| Sets texturebrush.
|
|
◆ create()
static intptr xtd::drawing::native::brush::create |
( |
| ) |
|
|
staticprotected |
Creates brush.
- Returns
- The created brush handle.
- Warning
- Internal use only
◆ destroy()
static void xtd::drawing::native::brush::destroy |
( |
intptr |
brush | ) |
|
|
staticprotected |
Destroys brush.
- Parameters
-
brush | The brush handle to destroy. |
- Warning
- Internal use only
◆ solid()
Sets solid color brush.
- Parameters
-
brush | The brush handle. |
a | The alpha component of the color. |
r | The red component of the color. |
g | The green component of the color. |
b | The blue component of the color. |
- Warning
- Internal use only
◆ conical_gradient()
Sets conical gradient brush.
- Parameters
-
brush | The brush handle. |
center_x | The x coordinate of the center point. |
center_y | The y coordinate of the center point. |
colors | The gradient stop colors. Contains color and offset. |
angle | The start angle of the conical gradient. |
- Warning
- Internal use only
◆ linear_gradient()
static void xtd::drawing::native::brush::linear_gradient |
( |
intptr |
brush, |
|
|
int32 |
x1, |
|
|
int32 |
y1, |
|
|
int32 |
x2, |
|
|
int32 |
y2, |
|
|
const std::vector< std::tuple< xtd::byte, xtd::byte, xtd::byte, xtd::byte, float > > & |
colors, |
|
|
float |
angle |
|
) |
| |
|
staticprotected |
Sets linear gradient brush.
x1 Contains the left value of the bound rectangle of the linear brush.
y1 Contains the top value of the bound rectangle of the linear brush.
x2 Contains the right value of the bound rectangle of the linear brush.
y1 Contains the bottom value of the bound rectangle of the linear brush.
- Parameters
-
angle | The start angle of the linear gradient. |
- Warning
- Internal use only
◆ radial_gradient()
static void xtd::drawing::native::brush::radial_gradient |
( |
intptr |
brush, |
|
|
int32 |
center_x, |
|
|
int32 |
center_y, |
|
|
int32 |
focal_x, |
|
|
int32 |
focal_y, |
|
|
const std::vector< std::tuple< xtd::byte, xtd::byte, xtd::byte, xtd::byte, float > > & |
colors, |
|
|
float |
radius |
|
) |
| |
|
staticprotected |
Sets radial gradient brush.
- Parameters
-
brush | The brush handle. |
center_x | The x coordinate of the center point. |
center_y | The y coordinate of the center point. |
focal_x | The x coordinate of the focal point. |
focal_y | The y coordinate of the focal point. |
colors | The gradient stop colors. Contains color and offset. |
radius | The radius of the radial gradient. |
- Warning
- Internal use only
◆ texture()
static void xtd::drawing::native::brush::texture |
( |
intptr |
brush, |
|
|
intptr |
texture |
|
) |
| |
|
staticprotected |
Sets texturebrush.
- Parameters
-
brush | The brush handle. |
texture | The image handle that represents the texture of the brush. |
The documentation for this class was generated from the following file:
- xtd.drawing.native/include/xtd/drawing/native/brush.hpp