MainUnit.lfm 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. object FormTranformExample: TFormTranformExample
  2. Left = 582
  3. Height = 529
  4. Top = 275
  5. Width = 619
  6. BorderStyle = bsDialog
  7. Caption = 'Transform Demo'
  8. ClientHeight = 529
  9. ClientWidth = 619
  10. Color = clBtnFace
  11. Font.Color = clWindowText
  12. Font.Height = -11
  13. Font.Name = 'Tahoma'
  14. OnCreate = FormCreate
  15. OnDestroy = FormDestroy
  16. LCLVersion = '1.1'
  17. object PageControl: TPageControl
  18. Left = 0
  19. Height = 265
  20. Top = 264
  21. Width = 617
  22. ActivePage = TstAffine
  23. TabIndex = 0
  24. TabOrder = 2
  25. OnChange = PageControlChange
  26. object TstAffine: TTabSheet
  27. Caption = 'Affine'
  28. ClientHeight = 239
  29. ClientWidth = 609
  30. object LblCodeString: TLabel
  31. Left = 8
  32. Height = 13
  33. Top = 212
  34. Width = 59
  35. Caption = 'Code string:'
  36. ParentColor = False
  37. end
  38. object LblTransformationMatrix: TLabel
  39. Left = 443
  40. Height = 13
  41. Top = 96
  42. Width = 110
  43. Caption = 'Transformation matrix:'
  44. ParentColor = False
  45. end
  46. object LblResampler: TLabel
  47. Left = 405
  48. Height = 13
  49. Top = 8
  50. Width = 78
  51. Anchors = [akTop, akRight]
  52. Caption = 'Resampler Class'
  53. ParentColor = False
  54. end
  55. object LblKernel: TLabel
  56. Left = 405
  57. Height = 13
  58. Top = 48
  59. Width = 96
  60. Anchors = [akTop, akRight]
  61. Caption = 'Kernel Class (if any)'
  62. ParentColor = False
  63. Visible = False
  64. end
  65. object PnlTransformationMatrix: TPanel
  66. Left = 445
  67. Height = 73
  68. Top = 112
  69. Width = 105
  70. BevelOuter = bvNone
  71. ClientHeight = 73
  72. ClientWidth = 105
  73. TabOrder = 0
  74. object Shape1: TShape
  75. Left = 0
  76. Height = 73
  77. Top = 0
  78. Width = 9
  79. Align = alLeft
  80. Brush.Style = bsClear
  81. end
  82. object Shape2: TShape
  83. Left = 96
  84. Height = 73
  85. Top = 0
  86. Width = 9
  87. Align = alRight
  88. Brush.Style = bsClear
  89. end
  90. object StringGrid: TStringGrid
  91. Left = 8
  92. Height = 71
  93. Top = 1
  94. Width = 93
  95. Anchors = [akTop, akLeft, akRight, akBottom]
  96. BorderStyle = bsNone
  97. ColCount = 4
  98. DefaultColWidth = 37
  99. DefaultRowHeight = 26
  100. Enabled = False
  101. FixedCols = 0
  102. FixedRows = 0
  103. Options = []
  104. ParentColor = True
  105. RowCount = 3
  106. ScrollBars = ssNone
  107. TabOrder = 0
  108. TitleFont.Color = clWindowText
  109. TitleFont.Height = -11
  110. TitleFont.Name = 'Tahoma'
  111. end
  112. end
  113. object ListBox: TListBox
  114. Left = 8
  115. Height = 161
  116. Top = 8
  117. Width = 72
  118. BorderStyle = bsNone
  119. Items.Strings = (
  120. 'Operation 1'
  121. 'Operation 2'
  122. 'Operation 3'
  123. 'Operation 4'
  124. 'Operation 5'
  125. 'Operation 6'
  126. 'Operation 7'
  127. 'Operation 8'
  128. )
  129. ItemHeight = 20
  130. OnClick = ListBoxClick
  131. ParentColor = True
  132. Style = lbOwnerDrawFixed
  133. TabOrder = 1
  134. end
  135. object BtnClearAll: TButton
  136. Left = 8
  137. Height = 23
  138. Top = 178
  139. Width = 65
  140. Caption = 'Clear All'
  141. OnClick = BtnClearAllClick
  142. TabOrder = 2
  143. end
  144. object EdtCodeString: TEdit
  145. Left = 80
  146. Height = 21
  147. Top = 208
  148. Width = 521
  149. ReadOnly = True
  150. TabOrder = 3
  151. Text = 'Clear;'
  152. end
  153. object PnlOperation: TPanel
  154. Left = 80
  155. Height = 193
  156. Top = 8
  157. Width = 321
  158. ClientHeight = 193
  159. ClientWidth = 321
  160. TabOrder = 4
  161. object LblType: TLabel
  162. Left = 8
  163. Height = 13
  164. Top = 11
  165. Width = 28
  166. Caption = 'Type:'
  167. ParentColor = False
  168. end
  169. object ComboBox: TComboBox
  170. Left = 48
  171. Height = 21
  172. Top = 8
  173. Width = 265
  174. ItemHeight = 13
  175. Items.Strings = (
  176. 'None'
  177. 'Translate'
  178. 'Scale'
  179. 'Rotate'
  180. 'Skew'
  181. )
  182. OnChange = ComboBoxChange
  183. Style = csDropDownList
  184. TabOrder = 0
  185. end
  186. object Notebook: TNotebook
  187. Left = 8
  188. Height = 145
  189. Top = 40
  190. Width = 305
  191. PageIndex = 0
  192. TabOrder = 1
  193. TabStop = True
  194. object PageNone: TPage
  195. object LblNoOperation: TLabel
  196. Left = 16
  197. Height = 26
  198. Top = 16
  199. Width = 235
  200. Caption = 'No type is specified for this operation.'#13#10'Select operation type from the combo box above'
  201. ParentColor = False
  202. end
  203. end
  204. object PageTranslate: TPage
  205. object LblInfoTranslate: TLabel
  206. Left = 8
  207. Height = 26
  208. Top = 8
  209. Width = 195
  210. Caption = 'method declaration:'#13#10'procedure Translate(Dx, Dy: Extended);'
  211. ParentColor = False
  212. end
  213. object LblDx: TLabel
  214. Left = 16
  215. Height = 13
  216. Top = 59
  217. Width = 17
  218. Caption = 'Dx:'
  219. ParentColor = False
  220. end
  221. object LblDy: TLabel
  222. Left = 16
  223. Height = 13
  224. Top = 91
  225. Width = 17
  226. Caption = 'Dy:'
  227. ParentColor = False
  228. end
  229. object EdtDx: TEdit
  230. Left = 48
  231. Height = 21
  232. Top = 56
  233. Width = 57
  234. OnChange = TranslationChanged
  235. TabOrder = 0
  236. Text = '0'
  237. end
  238. object EdtDy: TEdit
  239. Left = 48
  240. Height = 21
  241. Top = 88
  242. Width = 57
  243. OnChange = TranslationChanged
  244. TabOrder = 1
  245. Text = '0'
  246. end
  247. object GbrDx: TGaugeBar
  248. Left = 120
  249. Height = 16
  250. Top = 58
  251. Width = 173
  252. Color = clScrollBar
  253. Backgnd = bgPattern
  254. Max = 1000
  255. Min = -1000
  256. ShowHandleGrip = True
  257. Position = 0
  258. OnUserChange = TranslationScrolled
  259. end
  260. object GbrDy: TGaugeBar
  261. Left = 120
  262. Height = 16
  263. Top = 90
  264. Width = 173
  265. Color = clScrollBar
  266. Backgnd = bgPattern
  267. Max = 1000
  268. Min = -1000
  269. ShowHandleGrip = True
  270. Position = 0
  271. OnUserChange = TranslationScrolled
  272. end
  273. end
  274. object PageScale: TPage
  275. object LblSy: TLabel
  276. Left = 16
  277. Height = 13
  278. Top = 91
  279. Width = 16
  280. Caption = 'Sy:'
  281. ParentColor = False
  282. end
  283. object LblSx: TLabel
  284. Left = 16
  285. Height = 13
  286. Top = 59
  287. Width = 16
  288. Caption = 'Sx:'
  289. ParentColor = False
  290. end
  291. object LblScale: TLabel
  292. Left = 8
  293. Height = 26
  294. Top = 8
  295. Width = 173
  296. Caption = 'method declaration:'#13#10'procedure Scale(Sx, Sy: Extended);'
  297. ParentColor = False
  298. end
  299. object EdtSy: TEdit
  300. Left = 48
  301. Height = 21
  302. Top = 88
  303. Width = 57
  304. OnChange = ScaleChanged
  305. TabOrder = 0
  306. Text = '0'
  307. end
  308. object EdtSx: TEdit
  309. Left = 48
  310. Height = 21
  311. Top = 56
  312. Width = 57
  313. OnChange = ScaleChanged
  314. TabOrder = 1
  315. Text = '0'
  316. end
  317. object GbrSx: TGaugeBar
  318. Left = 116
  319. Height = 16
  320. Top = 58
  321. Width = 177
  322. Color = clScrollBar
  323. Backgnd = bgPattern
  324. Max = 1000
  325. Min = -1000
  326. ShowHandleGrip = True
  327. Position = 0
  328. OnUserChange = ScaleScrolled
  329. end
  330. object GbrSy: TGaugeBar
  331. Left = 116
  332. Height = 16
  333. Top = 90
  334. Width = 177
  335. Color = clScrollBar
  336. Backgnd = bgPattern
  337. Max = 1000
  338. Min = -1000
  339. ShowHandleGrip = True
  340. Position = 0
  341. OnUserChange = ScaleScrolled
  342. end
  343. end
  344. object PageRotate: TPage
  345. object LblInfoRotate: TLabel
  346. Left = 8
  347. Height = 26
  348. Top = 8
  349. Width = 217
  350. Caption = 'method declaration: '#13#10'procedure Rotate(Cx, Cy, Alpha: Extended);'
  351. ParentColor = False
  352. end
  353. object LblCx: TLabel
  354. Left = 16
  355. Height = 13
  356. Top = 59
  357. Width = 17
  358. Caption = 'Cx:'
  359. ParentColor = False
  360. end
  361. object LblAlpha: TLabel
  362. Left = 16
  363. Height = 13
  364. Top = 91
  365. Width = 31
  366. Caption = 'Alpha:'
  367. ParentColor = False
  368. end
  369. object LblCy: TLabel
  370. Left = 152
  371. Height = 13
  372. Top = 59
  373. Width = 17
  374. Caption = 'Cy:'
  375. ParentColor = False
  376. end
  377. object EdtCx: TEdit
  378. Left = 48
  379. Height = 21
  380. Top = 56
  381. Width = 57
  382. OnChange = RotationChanged
  383. TabOrder = 0
  384. Text = '0'
  385. end
  386. object EdtAlpha: TEdit
  387. Left = 48
  388. Height = 21
  389. Top = 88
  390. Width = 57
  391. OnChange = RotationChanged
  392. TabOrder = 1
  393. Text = '0'
  394. end
  395. object EdtCy: TEdit
  396. Left = 184
  397. Height = 21
  398. Top = 56
  399. Width = 57
  400. OnChange = RotationChanged
  401. TabOrder = 2
  402. Text = '0'
  403. end
  404. object GbrAlpha: TGaugeBar
  405. Left = 112
  406. Height = 16
  407. Top = 90
  408. Width = 181
  409. Color = clScrollBar
  410. Backgnd = bgPattern
  411. Max = 1000
  412. Min = -1000
  413. ShowHandleGrip = True
  414. Position = 0
  415. OnUserChange = RotationScrolled
  416. end
  417. end
  418. object PageSkew: TPage
  419. object LblInfoSkew: TLabel
  420. Left = 8
  421. Height = 26
  422. Top = 8
  423. Width = 173
  424. Caption = 'method declaration:'#13#10'procedure Skew(Fx, Fy: Extended);'
  425. ParentColor = False
  426. end
  427. object LblFx: TLabel
  428. Left = 16
  429. Height = 13
  430. Top = 59
  431. Width = 16
  432. Caption = 'Fx:'
  433. ParentColor = False
  434. end
  435. object LblFy: TLabel
  436. Left = 16
  437. Height = 13
  438. Top = 91
  439. Width = 16
  440. Caption = 'Fy:'
  441. ParentColor = False
  442. end
  443. object EdtFx: TEdit
  444. Left = 48
  445. Height = 21
  446. Top = 56
  447. Width = 57
  448. OnChange = SkewChanged
  449. TabOrder = 0
  450. Text = '0'
  451. end
  452. object EdtFy: TEdit
  453. Left = 48
  454. Height = 21
  455. Top = 88
  456. Width = 57
  457. OnChange = SkewChanged
  458. TabOrder = 1
  459. Text = '0'
  460. end
  461. object GbrFx: TGaugeBar
  462. Left = 116
  463. Height = 16
  464. Top = 58
  465. Width = 177
  466. Color = clScrollBar
  467. Backgnd = bgPattern
  468. Min = -100
  469. ShowHandleGrip = True
  470. Position = 0
  471. OnUserChange = SkewScrolled
  472. end
  473. object GbrFy: TGaugeBar
  474. Left = 116
  475. Height = 16
  476. Top = 90
  477. Width = 177
  478. Color = clScrollBar
  479. Backgnd = bgPattern
  480. Min = -100
  481. ShowHandleGrip = True
  482. Position = 0
  483. OnUserChange = SkewScrolled
  484. end
  485. end
  486. end
  487. end
  488. object CmbResamplerClassNames: TComboBox
  489. Left = 405
  490. Height = 21
  491. Top = 24
  492. Width = 177
  493. Anchors = [akTop, akRight]
  494. ItemHeight = 13
  495. OnChange = CmbResamplerClassNamesChange
  496. Style = csDropDownList
  497. TabOrder = 5
  498. end
  499. object CmbKernelClassNames: TComboBox
  500. Left = 405
  501. Height = 21
  502. Top = 64
  503. Width = 177
  504. Anchors = [akTop, akRight]
  505. ItemHeight = 13
  506. OnChange = CmbKernelClassNamesChange
  507. Style = csDropDownList
  508. TabOrder = 6
  509. Visible = False
  510. end
  511. end
  512. object TstProjective: TTabSheet
  513. Caption = 'Projective'
  514. ClientHeight = 0
  515. ClientWidth = 0
  516. ImageIndex = 1
  517. object LblProjectiveNote: TLabel
  518. Left = 48
  519. Height = 26
  520. Top = 24
  521. Width = 230
  522. Caption = 'Note:'#13#10'Only convex polygons are transormed normally!'
  523. ParentColor = False
  524. end
  525. end
  526. end
  527. object Src: TImage32
  528. Left = 2
  529. Height = 256
  530. Top = 2
  531. Width = 256
  532. Bitmap.DrawMode = dmBlend
  533. Bitmap.ResamplerClassName = 'TNearestResampler'
  534. BitmapAlign = baTopLeft
  535. Color = clAppWorkspace
  536. ParentColor = False
  537. RepaintMode = rmOptimizer
  538. Scale = 1
  539. ScaleMode = smNormal
  540. TabOrder = 0
  541. OnPaintStage = DstPaintStage
  542. end
  543. object Dst: TImage32
  544. Left = 264
  545. Height = 256
  546. Top = 2
  547. Width = 351
  548. Bitmap.DrawMode = dmBlend
  549. Bitmap.ResamplerClassName = 'TNearestResampler'
  550. BitmapAlign = baTopLeft
  551. Color = clAppWorkspace
  552. ParentColor = False
  553. RepaintMode = rmOptimizer
  554. Scale = 1
  555. ScaleMode = smNormal
  556. TabOrder = 1
  557. OnMouseDown = RubberLayerMouseDown
  558. OnMouseMove = RubberLayerMouseMove
  559. OnMouseUp = RubberLayerMouseUp
  560. OnPaintStage = DstPaintStage
  561. end
  562. object PnlOpacity: TPanel
  563. Left = 264
  564. Height = 20
  565. Top = 260
  566. Width = 281
  567. Alignment = taLeftJustify
  568. BevelOuter = bvNone
  569. Caption = ' Opacity:'
  570. ClientHeight = 20
  571. ClientWidth = 281
  572. TabOrder = 3
  573. object OpacityBar: TGaugeBar
  574. Left = 56
  575. Height = 16
  576. Top = 2
  577. Width = 213
  578. Color = clScrollBar
  579. Backgnd = bgPattern
  580. Max = 255
  581. ShowHandleGrip = True
  582. Position = 255
  583. OnChange = OpacityChange
  584. end
  585. end
  586. object CbxRepeat: TCheckBox
  587. Left = 544
  588. Height = 19
  589. Top = 260
  590. Width = 55
  591. Caption = 'Repeat'
  592. OnClick = CbxRepeatClick
  593. TabOrder = 4
  594. end
  595. end