Legends
01 Syntax
Microsoft.VisualBasic.Imaging.Drawing2D.Colors.Legends
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| ColorMapLegend | 3 | 垂直的颜色谱的绘制:左边为颜色谱,右边为标尺,左边的颜色谱的上方为标题 |
| ColorLegendHorizontal | 1 | 横向的颜色legend |
03 Members
ColorMapLegend(
Color(), String, String, String, String, Boolean, Size, String, Font, Font, Single)Draw color legend for the color sequnece. (通过这个函数只是生成了legend的图片,还需要自己将图片放置到图表上的合适的位置)
Parameters
| Name | Type | Description |
|---|---|---|
designer | Color() | - |
title$ | String | The legend title |
min$ | String | - |
max$ | String | - |
bg$ | String | - |
haveUnmapped | Boolean | - |
lsize | Size | - |
ColorMapLegend(
SolidBrush(), String, String, String, String, Boolean, Size, String, Font, Font, Single)竖直的颜色图例,输出的图例的大小默认为:{800, 1024}
Parameters
| Name | Type | Description |
|---|---|---|
designer | SolidBrush() | - |
title$ | String | - |
min$ | String | - |
max$ | String | - |
bg$ | String | - |
haveUnmapped | Boolean | - |
lsize | Size | - |
titleFont | String | - |
ColorMapLegend(
IGraphics, Rectangle, SolidBrush(), Double(), Font, String, Font, Pen, String, Single, String, Single, Boolean, String, Single)垂直的颜色谱的绘制:左边为颜色谱,右边为标尺,左边的颜色谱的上方为标题
Parameters
| Name | Type | Description |
|---|---|---|
g | IGraphics | - |
layout | Rectangle | legend的大小和位置 |
unmapColor | SolidBrush() | 当这个参数为空值的时候,将不会绘制未映射颜色示例 |
ColorLegendHorizontal(
SolidBrush(), Double(), Size, String, String)横向的颜色legend
Parameters
| Name | Type | Description |
|---|---|---|
designer | SolidBrush() | - |
size | Double() | - |
padding$ | Size | - |
labelFontCSS$ | String | - |