RGraphics 方法 |
RGraphics 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
![]() | DrawImage(RImage, RRect) |
Draws the specified Image at the specified location and with the specified size.
|
![]() | DrawImage(RImage, RRect, RRect) |
Draws the specified portion of the specified RImage at the specified location and with the specified size.
|
![]() | DrawLine |
Draws a line connecting the two points specified by the coordinate pairs.
|
![]() | DrawPath(RBrush, RGraphicsPath) |
Fills the interior of a GraphicsPath.
|
![]() | DrawPath(RPen, RGraphicsPath) |
Draws a GraphicsPath.
|
![]() | DrawPolygon |
Fills the interior of a polygon defined by an array of points specified by Point structures.
|
![]() | DrawRectangle(RBrush, Double, Double, Double, Double) |
Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
|
![]() | DrawRectangle(RPen, Double, Double, Double, Double) |
Draws a rectangle specified by a coordinate pair, a width, and a height.
|
![]() | DrawString |
Draw the given string using the given font and foreground color at given location.
|
![]() | GetClip |
Gets a Rectangle structure that bounds the clipping region of this Graphics.
|
![]() | GetGraphicsPath |
Get GraphicsPath object.
|
![]() | GetLinearGradientBrush |
Get linear gradient color brush from color1 to color2.
|
![]() | GetPen |
Get color pen.
|
![]() | GetSolidBrush |
Get solid color brush.
|
![]() | GetTextureBrush |
Get TextureBrush object that uses the specified image and bounding rectangle.
|
![]() | MeasureString(String, RFont) |
Measure the width and height of string str when drawn on device context HDC
using the given font font.
|
![]() | MeasureString(String, RFont, Double, Int32, Double) |
Measure the width of string under max width restriction calculating the number of characters that can fit and the width those characters take. Not relevant for platforms that don't render HTML on UI element. |
![]() | PopClip |
Pop the latest clip push.
|
![]() | PushClip |
Push the clipping region of this Graphics to interception of current clipping rectangle and the given rectangle.
|
![]() | PushClipExclude |
Push the clipping region of this Graphics to exclude the given rectangle from the current clipping rectangle.
|
![]() | ReturnPreviousSmoothingMode |
Return to previous smooth mode before anti-alias was set as returned from SetAntiAliasSmoothingMode.
|
![]() | SetAntiAliasSmoothingMode |
Set the graphics smooth mode to use anti-alias. Use ReturnPreviousSmoothingMode(Object) to return back the mode used. |
名称 | 说明 | |
---|---|---|
![]() | FormatDateTime |
将数据以时间格式并对其格式化
(由 ObjectExtenstions 定义。) |
![]() | FormatNumber |
将数据以数值方式对数据格式化
(由 ObjectExtenstions 定义。) |
![]() | FormatString |
将数据以字符串格式对数据格式化
(由 ObjectExtenstions 定义。) |
![]() | Sleep |
异步延迟执行代码,只能在主线程中调用
(由 DuiControlExtensions 定义。) |
![]() | ToBool |
将数据转换成Bool,如果转换失败返回False
(由 ObjectExtenstions 定义。) |
![]() | ToDateTime |
将数据转换成DateTime,如果转换失败返回空的时间
(由 ObjectExtenstions 定义。) |
![]() | ToDouble |
将数据转换成Double,如果转换失败返回0
(由 ObjectExtenstions 定义。) |
![]() | ToEnumT |
将数据转换成枚举,如果转换失败则返回默认值
(由 ObjectExtenstions 定义。) |
![]() | ToFloat |
将数据转换成Float,如果转换失败返回0
(由 ObjectExtenstions 定义。) |
![]() | ToInt | 已重载。
将数据转换成int,如果转换失败返回0
(由 ObjectExtenstions 定义。) |
![]() | ToInt(Int32) | 已重载。
数据转换成int,如果转换失败,返回errorResult
(由 ObjectExtenstions 定义。) |
![]() | ToJson |
将对象序列化成Json字符串
(由 JsonHelper 定义。) |
![]() | ToLong |
将数据转换成Long,如果转换失败返回0
(由 ObjectExtenstions 定义。) |