88 lines
1.9 KiB
Markdown
88 lines
1.9 KiB
Markdown
# UIGraphicsComponent.text
|
|
|
|
[← UIGraphicsComponent](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 2/5 · [önceki](text.md) · [sonraki](text-3.md)
|
|
|
|
color - ARGB color that fills the rectangle.
|
|
|
|
gradient
|
|
|
|
public Graphic gradient(int primary,
|
|
int secondary)
|
|
|
|
Draw a vertical gradient rectangle.
|
|
|
|
Parameters:
|
|
primary - ARGB color that fills top part of the gradient.
|
|
secondary - ARGB color that fills bottom part of the gradient.
|
|
|
|
gradient
|
|
|
|
public Graphic gradient(int primary,
|
|
int secondary,
|
|
boolean horizontal)
|
|
|
|
Draw a vertical/horizontal gradient rectangle.
|
|
|
|
Parameters:
|
|
primary - ARGB color that fills top part of the gradient.
|
|
secondary - ARGB color that fills bottom part of the gradient.
|
|
horizontal - Whether gradient is horizontal (true) or vertical (false).
|
|
|
|
gradient
|
|
|
|
|
|
|
|
public Graphic gradient(int x,
|
|
int y,
|
|
int w,
|
|
int h,
|
|
int primary,
|
|
int secondary)
|
|
|
|
Draw a vertical gradient rectangle relative to graphics component's frame.
|
|
|
|
Parameters:
|
|
w - Width of the rectangle.
|
|
h - Height of the rectangle.
|
|
primary - ARGB color that fills top part of the gradient.
|
|
secondary - ARGB color that fills bottom part of the gradient.
|
|
|
|
gradient
|
|
|
|
public Graphic gradient(int x,
|
|
int y,
|
|
int w,
|
|
int h,
|
|
int primary,
|
|
int secondary,
|
|
boolean horizontal)
|
|
|
|
Draw a gradient rectangle relative to graphics component's frame.
|
|
|
|
Parameters:
|
|
w - Width of the rectangle.
|
|
h - Height of the rectangle.
|
|
primary - ARGB color that fills top or left part of the gradient.
|
|
secondary - ARGB color that fills bottom or right part of the gradient.
|
|
horizontal - Whether gradient is horizontal (true) or vertical (false).
|
|
|
|
image
|
|
|
|
public Graphic image(java.lang.String image,
|
|
int textureWidth,
|
|
int textureHeight)
|
|
|
|
Draw an image.
|
|
|
|
image
|
|
|
|
public Graphic image(java.lang.String image,
|
|
int textureWidth,
|
|
int textureHeight,
|
|
int primary)
|
|
|
|
Draw an image.
|
|
|