Data plots graphics engine common abstract.
g
00 Remarks
(在命令行中使用graphic_driver=svg来切换默认的图形引擎为SVG矢量图作图引擎)
01 Syntax
Microsoft.VisualBasic.Imaging.Drawing2D.g
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .cctor | 1 | 在这个模块的构造函数之中,程序会自动根据命令行所设置的环境参数来设置默认的图形引擎 /@set graphic_driver=svg|gdi |
| __getDriver | 1 | 这个函数不会返回Drivers.Default |
| SetDriver | 1 | 在代码中手动配置默认的驱动程序 |
| GraphicsPlots | 2 | Data plots graphics engine. |
| FillBackground | 1 | 自动根据表达式的类型来进行纯色绘制或者图形纹理画刷绘制 |
| MeasureSize | 2 | IGraphics.MeasureString()) extensions |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| ActiveDriver | 1 | Get the result from commandline environment variable: graphic_driver |
| DriverExtensionName | 1 | Get the image file extension name for current default image driver. |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| DefaultPadding | 1 | 默认的页边距大小都是100个像素 |
| DefaultLargerPadding | 1 | 与g.DefaultPadding相比而言,这个padding的值在坐标轴Axis的label的绘制上空间更加大 |
| ZeroPadding | 1 | 所有的页边距都是零 |
05 Members
#cctor
在这个模块的构造函数之中,程序会自动根据命令行所设置的环境参数来设置默认的图形引擎
/@set graphic_driver=svg|gdi__getDriver(
Drivers)这个函数不会返回Drivers.Default
Parameters
| Name | Type | Description |
|---|---|---|
developerValue | Drivers | 程序开发人员所设计的驱动程序的值 |
SetDriver(
Drivers)在代码中手动配置默认的驱动程序
Parameters
| Name | Type | Description |
|---|---|---|
driver | Drivers | - |
Data plots graphics engine. Default: size:=(4300, 2000), padding:=(100,100,100,100). (用户可以通过命令行设置环境变量graphic_driver来切换图形引擎)
Parameters
| Name | Type | Description |
|---|---|---|
size | Size | - |
padding | Padding | 页边距 |
bg | String | 颜色值或者图片资源文件的url或者文件路径 |
plotAPI | IPlot | - |
driver | Drivers | 驱动程序是默认与当前的环境参数设置相关的 |
GraphicsPlots(
Action(Of IGraphics), Size, Padding, String)Data plots graphics engine.
Parameters
| Name | Type | Description |
|---|---|---|
size | Action(Of IGraphics) | - |
bg | Size | - |
plot | Padding | - |
自动根据表达式的类型来进行纯色绘制或者图形纹理画刷绘制
Parameters
| Name | Type | Description |
|---|---|---|
g | IGraphics | - |
bg$ | String |
|
MeasureSize(
String, IGraphics, Font)IGraphics.MeasureString() extensions
Parameters
| Name | Type | Description |
|---|---|---|
text$ | String | - |
g | IGraphics | - |
font | Font | - |
MeasureSize(
String, IGraphics, Font, ValueTuple(Of Double, Double))IGraphics.MeasureString() extensions
Parameters
| Name | Type | Description |
|---|---|---|
text | String | - |
g | IGraphics | - |
font | Font | - |
ActiveDriver
Get the result from commandline environment variable: graphic_driver
DriverExtensionName
Get the image file extension name for current default image driver.
DefaultPadding
默认的页边距大小都是100个像素
DefaultLargerPadding
与g.DefaultPadding相比而言,这个padding的值在坐标轴Axis的label的绘制上空间更加大
ZeroPadding
所有的页边距都是零