MainUnit.dfm 15 KB

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