点击或拖拽改变大小

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.
Top
扩展方法
  名称说明
公共扩展器方法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 定义。)
Top
参见