GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Plotly.NET/src/Plotly.NET.ImageExport/GenericChartExtensions.fs at dev · plotly/Plotly.NET

Expand file tree

/

GenericChartExtensions.fs

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
222 lines (201 loc) · 9.7 KB
/

GenericChartExtensions.fs

Copy path

File metadata and controls

222 lines (201 loc) · 9.7 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
namespace Plotly.NET.ImageExport
open Plotly.NET
open System
open System.Runtime.InteropServices
open System.Runtime.CompilerServices
///<summary>Extension methods for providing a Plotly.NET.ImageExport fluent interface pattern for C#</summary>
[<Extension>]
module GenericChartExtensions =
type GenericChart with
/// <summary>
/// Converts the GenericChart to a base64 encoded JPG string (async)
/// </summary>
/// <param name="EngineType"></param>
/// <param name="Width"></param>
/// <param name="Height"></param>
[<CompiledName("ToBase64JPGStringAsync")>]
[<Extension>]
member this.ToBase64JPGStringAsync
(
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.toBase64JPGStringAsync (?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Converts the GenericChart to a base64 encoded JPG string
/// </summary>
/// <param name="EngineType"></param>
/// <param name="Width"></param>
/// <param name="Height"></param>
[<CompiledName("ToBase64JPGString")>]
[<Extension>]
member this.ToBase64JPGString
(
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.toBase64JPGString (?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Saves the GenericChart as JPG image (async)
/// </summary>
/// <param name="path">The path (without extension) where the image will be saved</param>
/// <param name="EngineType">The Render engine to use</param>
/// <param name="Width">width of the resulting image</param>
/// <param name="Height">height of the resulting image</param>
[<CompiledName("SaveJPGAsync")>]
[<Extension>]
member this.SaveJPGAsync
(
path: string,
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.saveJPGAsync (path, ?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Saves the GenericChart as JPG image
/// </summary>
/// <param name="path">The path (without extension) where the image will be saved</param>
/// <param name="EngineType">The Render engine to use</param>
/// <param name="Width">width of the resulting image</param>
/// <param name="Height">height of the resulting image</param>
[<CompiledName("SaveJPG")>]
[<Extension>]
member this.SaveJPG
(
path: string,
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.saveJPG (path, ?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Converts the GenericChart to a base64 encoded PNG string (async)
/// </summary>
/// <param name="EngineType"></param>
/// <param name="Width"></param>
/// <param name="Height"></param>
[<CompiledName("ToBase64PNGStringAsync")>]
[<Extension>]
member this.ToBase64PNGStringAsync
(
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.toBase64PNGStringAsync (?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Converts the GenericChart to a base64 encoded PNG string
/// </summary>
/// <param name="EngineType"></param>
/// <param name="Width"></param>
/// <param name="Height"></param>
[<CompiledName("ToBase64PNGString")>]
[<Extension>]
member this.ToBase64PNGString
(
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.toBase64PNGString (?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Saves the GenericChart as PNG image (async)
/// </summary>
/// <param name="path">The path (without extension) where the image will be saved</param>
/// <param name="EngineType">The Render engine to use</param>
/// <param name="Width">width of the resulting image</param>
/// <param name="Height">height of the resulting image</param>
[<CompiledName("SavePNGAsync")>]
[<Extension>]
member this.SavePNGAsync
(
path: string,
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.savePNGAsync (path, ?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Saves the GenericChart as PNG image
/// </summary>
/// <param name="path">The path (without extension) where the image will be saved</param>
/// <param name="EngineType">The Render engine to use</param>
/// <param name="Width">width of the resulting image</param>
/// <param name="Height">height of the resulting image</param>
[<CompiledName("SavePNG")>]
[<Extension>]
member this.SavePNG
(
path: string,
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.savePNG (path, ?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Converts the GenericChart to a SVG string (async)
/// </summary>
/// <param name="EngineType"></param>
/// <param name="Width"></param>
/// <param name="Height"></param>
[<CompiledName("ToSVGStringAsync")>]
[<Extension>]
member this.ToSVGStringAsync
(
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.toSVGStringAsync (?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Converts the GenericChart to a SVG string
/// </summary>
/// <param name="EngineType"></param>
/// <param name="Width"></param>
/// <param name="Height"></param>
[<CompiledName("ToSVGString")>]
[<Extension>]
member this.ToSVGString
(
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.toSVGString (?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Saves the GenericChart as SVG image (async)
/// </summary>
/// <param name="path">The path (without extension) where the image will be saved</param>
/// <param name="EngineType">The Render engine to use</param>
/// <param name="Width">width of the resulting image</param>
/// <param name="Height">height of the resulting image</param>
[<CompiledName("SaveSVGAsync")>]
[<Extension>]
member this.SaveSVGAsync
(
path: string,
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.saveSVGAsync (path, ?EngineType = EngineType, ?Width = Width, ?Height = Height)
/// <summary>
/// Saves the GenericChart as SVG image
/// </summary>
/// <param name="path">The path (without extension) where the image will be saved</param>
/// <param name="EngineType">The Render engine to use</param>
/// <param name="Width">width of the resulting image</param>
/// <param name="Height">height of the resulting image</param>
[<CompiledName("SaveSVG")>]
[<Extension>]
member this.SaveSVG
(
path: string,
[<Optional; DefaultParameterValue(null)>] ?EngineType: ExportEngine,
[<Optional; DefaultParameterValue(null)>] ?Width: int,
[<Optional; DefaultParameterValue(null)>] ?Height: int
) =
this |> Chart.saveSVG (path, ?EngineType = EngineType, ?Width = Width, ?Height = Height)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.