-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathunit1.lfm
More file actions
322 lines (322 loc) · 6.54 KB
/
unit1.lfm
File metadata and controls
322 lines (322 loc) · 6.54 KB
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
object Form1: TForm1
Left = 324
Height = 434
Top = 107
Width = 797
Caption = 'Form1'
ClientHeight = 434
ClientWidth = 797
Position = poScreenCenter
LCLVersion = '4.99.0.0'
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
object PaintBox1: TPaintBox
Left = 8
Height = 32
Top = 98
Width = 512
OnMouseDown = PaintBox1MouseDown
OnMouseMove = PaintBox1MouseMove
OnPaint = PaintBox1Paint
end
object Label2: TLabel
Left = 8
Height = 16
Top = 72
Width = 263
Caption = 'Left mouse = add new, right mouse = delete'
end
object GroupBox1: TGroupBox
Left = 9
Height = 80
Top = 144
Width = 512
ClientHeight = 78
ClientWidth = 510
TabOrder = 0
object ColorButton1: TColorButton
Left = 136
Height = 25
Top = 7
Width = 75
BorderWidth = 2
ButtonColorSize = 16
ButtonColor = clBlack
OnColorChanged = ColorButton1ColorChanged
end
object Edit1: TEdit
Left = 48
Height = 26
Top = 6
Width = 80
TabOrder = 0
Text = 'Edit1'
OnKeyPress = Edit1KeyPress
end
object Label1: TLabel
Left = 8
Height = 16
Top = 16
Width = 32
Caption = 'Color'
end
object ScrollBar1: TScrollBar
Left = 296
Height = 14
Top = 18
Width = 153
Max = 1000
PageSize = 0
TabOrder = 1
OnScroll = ScrollBar1Scroll
end
object Label3: TLabel
Left = 232
Height = 16
Top = 16
Width = 49
Caption = 'Position'
end
object Edit5: TEdit
Left = 456
Height = 26
Top = 6
Width = 48
TabOrder = 2
Text = 'Edit5'
OnKeyPress = Edit5KeyPress
end
object ScrollBar3: TScrollBar
Left = 296
Height = 14
Top = 50
Width = 153
Max = 2500
Min = 1
PageSize = 0
Position = 10
TabOrder = 3
Visible = False
OnScroll = ScrollBar3Scroll
end
object Label4: TLabel
Left = 232
Height = 16
Top = 48
Width = 37
Caption = 'Sigma'
Visible = False
end
object Edit6: TEdit
Left = 456
Height = 26
Top = 38
Width = 48
TabOrder = 4
Text = 'Edit6'
Visible = False
OnKeyPress = Edit6KeyPress
end
end
object PaintBox2: TPaintBox
Left = 528
Height = 256
Top = 8
Width = 256
PopupMenu = PopupMenu1
OnPaint = PaintBox2Paint
end
object GroupBox2: TGroupBox
Left = 8
Height = 57
Top = 8
Width = 384
Caption = ' Result image '
ClientHeight = 40
ClientWidth = 382
TabOrder = 1
object Label7: TLabel
Left = 8
Height = 16
Top = 16
Width = 37
Caption = 'Width'
end
object Edit3: TEdit
Left = 56
Height = 26
Top = 6
Width = 80
TabOrder = 0
Text = 'Edit3'
OnKeyPress = Edit4KeyPress
end
object Label8: TLabel
Left = 152
Height = 16
Top = 16
Width = 40
Caption = 'Height'
end
object Edit4: TEdit
Left = 200
Height = 26
Top = 6
Width = 80
TabOrder = 1
Text = 'Edit4'
OnKeyPress = Edit4KeyPress
end
object Button3: TButton
Left = 294
Height = 25
Top = 7
Width = 75
Caption = 'Set'
TabOrder = 2
OnClick = Button3Click
end
end
object Button1: TButton
Left = 8
Height = 25
Top = 400
Width = 179
Caption = 'Load configuration'
TabOrder = 2
OnClick = Button1Click
end
object Button2: TButton
Left = 341
Height = 25
Top = 400
Width = 179
Caption = 'Save configuration'
TabOrder = 3
OnClick = Button2Click
end
object Edit2: TEdit
Left = 73
Height = 26
Top = 296
Width = 56
TabOrder = 4
Text = 'Edit2'
OnKeyPress = Edit2KeyPress
end
object Label5: TLabel
Left = 9
Height = 16
Top = 306
Width = 52
Caption = 'Rotation'
end
object RadioGroup1: TRadioGroup
Left = 8
Height = 49
Top = 240
Width = 512
AutoFill = True
Caption = ' Type '
ChildSizing.LeftRightSpacing = 6
ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
ChildSizing.EnlargeVertical = crsHomogenousChildResize
ChildSizing.ShrinkHorizontal = crsScaleChilds
ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 2
ClientHeight = 32
ClientWidth = 510
Columns = 2
ItemIndex = 0
Items.Strings = (
'Linear'
'Radial'
)
TabOrder = 5
OnClick = RadioGroup1Click
end
object Label6: TLabel
Left = 137
Height = 16
Top = 306
Width = 7
Caption = '° '
end
object RadioGroup2: TRadioGroup
Left = 8
Height = 49
Top = 336
Width = 512
AutoFill = True
Caption = ' Interpolation '
ChildSizing.LeftRightSpacing = 6
ChildSizing.EnlargeHorizontal = crsHomogenousChildResize
ChildSizing.EnlargeVertical = crsHomogenousChildResize
ChildSizing.ShrinkHorizontal = crsScaleChilds
ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 3
ClientHeight = 32
ClientWidth = 510
Columns = 3
ItemIndex = 0
Items.Strings = (
'Linear'
'Cosine'
'Gauss'
)
TabOrder = 6
OnClick = RadioGroup2Click
end
object ScrollBar2: TScrollBar
Left = 161
Height = 14
Top = 306
Width = 359
Max = 359
PageSize = 0
TabOrder = 7
OnChange = ScrollBar2Change
end
object CheckBox1: TCheckBox
Left = 432
Height = 34
Hint = 'Buffered rendering is faster but introduces'#10'alias artefacts, uncheck if you store final result.'
Top = 32
Width = 77
Caption = 'Render '#10'Buffered'
Checked = True
ParentShowHint = False
ShowHint = True
State = cbChecked
TabOrder = 8
OnClick = CheckBox1Click
end
object PopupMenu1: TPopupMenu
Left = 613
Top = 135
object MenuItem1: TMenuItem
Caption = 'Save result'
OnClick = MenuItem1Click
end
end
object SaveDialog1: TSaveDialog
DefaultExt = '.bmp'
Filter = 'Windows Bitmap|*.bmp|All|*'
Left = 613
Top = 200
end
object OpenDialog1: TOpenDialog
DefaultExt = '.gradient'
Filter = 'Gradient|*.gradient|All|*'
Left = 576
Top = 336
end
object SaveDialog2: TSaveDialog
DefaultExt = '.gradient'
Filter = 'Gradient|*.gradient|All|*'
Left = 680
Top = 336
end
end