MainUnit.dfm 14 KB

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