@@ -134,18 +134,20 @@ You can see the progress on GitHub here:
134
134
135
135
Use this reference chart for the upcoming formulas:
136
136
137
- | Term | Definition |
138
- | :-----: | :--------- |
139
- | Width | The width of the area in millimeters
140
- | Height | The height of the area in millimeters
141
- | TWidth | The width of the tablet's digitizer in millimeters. Can be found in the tablet's configuration file.
142
- | THeight | The height of the tablet's digitizer in millimeters. Can be found in the tablet's configuration file.
143
- | XOffset | The X offset of the center of the area in millimeters
144
- | YOffset | The Y offset of the center of the area in millimeters
145
- | LPI | Lines per inch, this is commonly 5080 or 2540
137
+ | Term | Definition |
138
+ | :---------: | :--------- |
139
+ | Width | The width of the area in millimeters
140
+ | Height | The height of the area in millimeters
141
+ | XOffset | The X offset of the center of the area in millimeters
142
+ | YOffset | The Y offset of the center of the area in millimeters
143
+ | LPI | Lines per inch, this is commonly 5080 or 2540
144
+ | TWidth | The width of the tablet's digitizer in millimeters.
145
+ | THeight | The height of the tablet's digitizer in millimeters.
146
+ | THorizontal | The width of the tablet's digitizer in number of lines.
147
+ | TVertical | The height of the tablet's digitizer in number of lines.
146
148
{: .table .table-dark }
147
149
148
- ` TWidth ` and ` THeight ` can be found in the tablet's configuration file.
150
+ ` TWidth ` , ` THeight ` , ` THorizontal ` , and ` TVertical ` can be found in the tablet's configuration file.
149
151
150
152
Use the following formulas to get values for OpenTabletDriver's area editor's ` Width ` , ` Height ` , ` XOffset ` , and ` YOffset ` fields:
151
153
@@ -187,7 +189,9 @@ XOffset = (Width / 2) + (XPX / 3.937)
187
189
YOffset = (Height / 2 ) + (XPY / 3.937 )
188
190
```
189
191
190
- #### Huion and Gaomon
192
+ #### Huion and Gaomon {#gaomon-v1}
193
+
194
+ Newer Gaomon drivers use another formula. Please see [ Gaomon 2024 and up] ( #gaomon-v2 ) for those.
191
195
192
196
| Term | Definition |
193
197
| :----: | --- |
@@ -205,3 +209,22 @@ Height = (Bottom - Top) * THeight
205
209
XOffset = (Width / 2 ) + (Left * TWidth)
206
210
YOffset = (Height / 2 ) + (Top * THeight)
207
211
```
212
+
213
+ #### Gaomon 2024 and up {#gaomon-v2}
214
+
215
+ | Term | Definition |
216
+ | :----------: | --- |
217
+ | GaomonWidth | The number of horizontal lines set in the Gaomon driver
218
+ | GaomonHeight | The number of vertical lines set in the Gaomon driver
219
+ | GaomonX | The X offset of the top left corner of the area in number of horizontal lines
220
+ | GaomonY | The Y offset of the top left corner of the area in number of vertical lines
221
+ {: .table .table-dark }
222
+
223
+ ** Formula** :
224
+
225
+ ``` py
226
+ Width = (GaomonWidth / THorizontal) * TWidth
227
+ Height = (GaomonHeight / TVertical) * THeight
228
+ XOffset = (GaomonX / THorizontal) * TWidth + (Width / 2 )
229
+ YOffset = (GaomonY / TVertical) * THeight + (Height / 2 )
230
+ ```
0 commit comments