MainUnit.dfm 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. object MainForm: TMainForm
  2. Left = 254
  3. Top = 244
  4. Caption = 'Image Warping Example'
  5. ClientHeight = 623
  6. ClientWidth = 623
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. Menu = MainMenu
  14. Position = poScreenCenter
  15. OnClose = FormClose
  16. OnCreate = FormCreate
  17. TextHeight = 13
  18. object PnlMain: TPanel
  19. Left = 482
  20. Top = 0
  21. Width = 141
  22. Height = 623
  23. Align = alRight
  24. BevelOuter = bvNone
  25. BevelWidth = 2
  26. Caption = 'PnlMain'
  27. TabOrder = 0
  28. object PnlGeneral: TPanel
  29. Left = 0
  30. Top = 0
  31. Width = 141
  32. Height = 73
  33. Align = alTop
  34. TabOrder = 0
  35. object LblGeneral: TLabel
  36. Left = 1
  37. Top = 1
  38. Width = 139
  39. Height = 16
  40. Align = alTop
  41. Alignment = taCenter
  42. AutoSize = False
  43. Caption = 'General'
  44. Color = clGray
  45. Font.Charset = DEFAULT_CHARSET
  46. Font.Color = clWhite
  47. Font.Height = -11
  48. Font.Name = 'Tahoma'
  49. Font.Style = [fsBold]
  50. ParentColor = False
  51. ParentFont = False
  52. Layout = tlCenter
  53. end
  54. object LblRemapScale: TLabel
  55. Left = 8
  56. Top = 24
  57. Width = 65
  58. Height = 13
  59. Caption = 'Remap Scale:'
  60. end
  61. object ScaleBar: TGaugeBar
  62. Left = 8
  63. Top = 40
  64. Width = 121
  65. Height = 15
  66. Backgnd = bgPattern
  67. LargeChange = 10
  68. Max = 300
  69. Min = -300
  70. ShowHandleGrip = False
  71. Style = rbsMac
  72. Position = 100
  73. OnMouseUp = ScaleBarMouseUp
  74. end
  75. end
  76. object PnlBrush: TPanel
  77. Left = 0
  78. Top = 233
  79. Width = 141
  80. Height = 304
  81. Align = alTop
  82. TabOrder = 1
  83. object LblBrush: TLabel
  84. Left = 1
  85. Top = 1
  86. Width = 139
  87. Height = 16
  88. Align = alTop
  89. Alignment = taCenter
  90. AutoSize = False
  91. Caption = 'Brush'
  92. Color = clGray
  93. Font.Charset = DEFAULT_CHARSET
  94. Font.Color = clWhite
  95. Font.Height = -11
  96. Font.Name = 'Tahoma'
  97. Font.Style = [fsBold]
  98. ParentColor = False
  99. ParentFont = False
  100. Layout = tlCenter
  101. end
  102. object LblBrushFeather: TLabel
  103. Left = 8
  104. Top = 88
  105. Width = 42
  106. Height = 13
  107. Caption = 'Feather:'
  108. end
  109. object LblBrushPressure: TLabel
  110. Left = 8
  111. Top = 56
  112. Width = 46
  113. Height = 13
  114. Caption = 'Pressure:'
  115. end
  116. object LblBrushPinch: TLabel
  117. Left = 8
  118. Top = 120
  119. Width = 29
  120. Height = 13
  121. Caption = 'Pinch:'
  122. end
  123. object LblBrushSize: TLabel
  124. Left = 8
  125. Top = 24
  126. Width = 23
  127. Height = 13
  128. Caption = 'Size:'
  129. Transparent = True
  130. end
  131. object LblBrushMesh: TLabel
  132. Left = 8
  133. Top = 160
  134. Width = 59
  135. Height = 13
  136. Caption = 'Brush Mesh:'
  137. Transparent = True
  138. end
  139. object FeatherBar: TGaugeBar
  140. Left = 8
  141. Top = 104
  142. Width = 121
  143. Height = 15
  144. Backgnd = bgPattern
  145. LargeChange = 10
  146. ShowHandleGrip = False
  147. Style = rbsMac
  148. Position = 12
  149. OnChange = PressureBarChange
  150. end
  151. object PressureBar: TGaugeBar
  152. Left = 8
  153. Top = 72
  154. Width = 121
  155. Height = 15
  156. Backgnd = bgPattern
  157. LargeChange = 10
  158. ShowHandleGrip = False
  159. Style = rbsMac
  160. Position = 50
  161. OnChange = PressureBarChange
  162. end
  163. object PinchBar: TGaugeBar
  164. Left = 8
  165. Top = 136
  166. Width = 121
  167. Height = 15
  168. Backgnd = bgPattern
  169. LargeChange = 10
  170. Min = -100
  171. ShowHandleGrip = False
  172. Style = rbsMac
  173. Position = 0
  174. OnChange = PressureBarChange
  175. end
  176. object SizeBar: TGaugeBar
  177. Left = 8
  178. Top = 40
  179. Width = 121
  180. Height = 15
  181. Backgnd = bgPattern
  182. LargeChange = 10
  183. Max = 500
  184. Min = 5
  185. ShowHandleGrip = False
  186. Style = rbsMac
  187. Position = 100
  188. OnChange = SizeBarChange
  189. OnMouseUp = GaugeMouseUp
  190. end
  191. object BrushMeshPreview: TPaintBox32
  192. Left = 8
  193. Top = 176
  194. Width = 121
  195. Height = 121
  196. TabOrder = 4
  197. OnResize = BrushMeshPreviewResize
  198. end
  199. end
  200. object ToolPanel: TPanel
  201. Left = 0
  202. Top = 73
  203. Width = 141
  204. Height = 160
  205. Align = alTop
  206. TabOrder = 2
  207. object LblWaroTool: TLabel
  208. Left = 1
  209. Top = 1
  210. Width = 139
  211. Height = 16
  212. Align = alTop
  213. Alignment = taCenter
  214. AutoSize = False
  215. Caption = 'Warp Tool'
  216. Color = clGray
  217. Font.Charset = DEFAULT_CHARSET
  218. Font.Color = clWhite
  219. Font.Height = -11
  220. Font.Name = 'Tahoma'
  221. Font.Style = [fsBold]
  222. ParentColor = False
  223. ParentFont = False
  224. Layout = tlCenter
  225. end
  226. object LblParam: TLabel
  227. Left = 8
  228. Top = 88
  229. Width = 30
  230. Height = 13
  231. Caption = 'Param'
  232. Enabled = False
  233. end
  234. object RateLabel: TLabel
  235. Left = 8
  236. Top = 120
  237. Width = 27
  238. Height = 13
  239. Caption = 'Rate:'
  240. Enabled = False
  241. end
  242. object ToolGroup: TRadioGroup
  243. Left = 8
  244. Top = 24
  245. Width = 121
  246. Height = 57
  247. Columns = 2
  248. ItemIndex = 0
  249. Items.Strings = (
  250. 'Warp'
  251. 'Zoom'
  252. 'Twirl'
  253. 'Flower')
  254. TabOrder = 0
  255. OnClick = ToolGroupClick
  256. end
  257. object ParamBar: TGaugeBar
  258. Left = 8
  259. Top = 104
  260. Width = 121
  261. Height = 15
  262. Backgnd = bgPattern
  263. Enabled = False
  264. LargeChange = 10
  265. ShowHandleGrip = False
  266. Style = rbsMac
  267. Position = 20
  268. OnChange = PressureBarChange
  269. OnMouseUp = GaugeMouseUp
  270. end
  271. object RateBar: TGaugeBar
  272. Left = 8
  273. Top = 136
  274. Width = 121
  275. Height = 15
  276. Backgnd = bgPattern
  277. Enabled = False
  278. LargeChange = 10
  279. Max = 399
  280. ShowHandleGrip = False
  281. Style = rbsMac
  282. Position = 350
  283. OnChange = RateBarChange
  284. OnMouseUp = GaugeMouseUp
  285. end
  286. end
  287. end
  288. object DstImg: TImgView32
  289. Left = 0
  290. Top = 0
  291. Width = 482
  292. Height = 623
  293. Align = alClient
  294. Bitmap.DrawMode = dmBlend
  295. Bitmap.ResamplerClassName = 'TNearestResampler'
  296. BitmapAlign = baCustom
  297. RepaintMode = rmOptimizer
  298. Scale = 1.000000000000000000
  299. ScaleMode = smScale
  300. ScrollBars.Increment = 0
  301. ScrollBars.Size = 16
  302. ScrollBars.Visibility = svAuto
  303. OverSize = 0
  304. TabOrder = 1
  305. OnMouseDown = DstImgMouseDown
  306. OnMouseMove = DstImgMouseMove
  307. OnMouseUp = DstImgMouseUp
  308. OnPaintStage = DstImgPaintStage
  309. end
  310. object OpenPictureDialog: TOpenPictureDialog
  311. Left = 136
  312. Top = 8
  313. end
  314. object UpdateTimer: TTimer
  315. Interval = 50
  316. OnTimer = UpdateTimerTimer
  317. Left = 344
  318. Top = 8
  319. end
  320. object OpenMeshDialog: TOpenDialog
  321. Filter = 'Photoshop Liquify Mesh (*.msh)|*.msh'
  322. Options = [ofHideReadOnly, ofFileMustExist, ofEnableSizing]
  323. Left = 240
  324. Top = 8
  325. end
  326. object SaveMeshDialog: TSaveDialog
  327. Filter = 'Photoshop Liquify Mesh (*.msh)|*.msh'
  328. Options = [ofOverwritePrompt, ofHideReadOnly, ofEnableSizing]
  329. Left = 240
  330. Top = 64
  331. end
  332. object SavePictureDialog: TSavePictureDialog
  333. DefaultExt = '*.bmp'
  334. Filter = 'Bitmaps (*.bmp)|*.bmp'
  335. FilterIndex = 0
  336. Options = [ofOverwritePrompt, ofHideReadOnly, ofEnableSizing]
  337. Left = 136
  338. Top = 64
  339. end
  340. object MainMenu: TMainMenu
  341. Left = 344
  342. Top = 64
  343. object MnuFile: TMenuItem
  344. Caption = 'File'
  345. object MnuFileOpenImage: TMenuItem
  346. Caption = '&Open Image...'
  347. ShortCut = 16463
  348. OnClick = MnuFileOpenImageClick
  349. end
  350. object MnuFileSaveImage: TMenuItem
  351. Caption = '&Save Image...'
  352. ShortCut = 16467
  353. OnClick = MnuFileSaveImageClick
  354. end
  355. object N3: TMenuItem
  356. Caption = '-'
  357. end
  358. object MnuFileOpenMesh: TMenuItem
  359. Caption = 'Open Mesh...'
  360. OnClick = MnuFileOpenMeshClick
  361. end
  362. object MnuFileSaveMesh: TMenuItem
  363. Caption = 'Save Mesh...'
  364. OnClick = MnuFileSaveMeshClick
  365. end
  366. object MnuResetMesh: TMenuItem
  367. Caption = 'Reset Mesh'
  368. ShortCut = 16466
  369. OnClick = MnuResetMeshClick
  370. end
  371. object N4: TMenuItem
  372. Caption = '-'
  373. end
  374. object MnuFileExit: TMenuItem
  375. Caption = 'Exit'
  376. OnClick = MnuFileExitClick
  377. end
  378. end
  379. object MnuSampling: TMenuItem
  380. Caption = 'Sampling'
  381. object MnuSupersampleNow: TMenuItem
  382. Caption = 'Supersample Now!'
  383. OnClick = MnuSupersampleNowClick
  384. end
  385. object N1: TMenuItem
  386. Caption = '-'
  387. end
  388. object MnuSamplingKernel: TMenuItem
  389. Caption = 'Sampling Kernel'
  390. end
  391. object MnuKernelMode: TMenuItem
  392. Caption = 'KernelMode'
  393. object MnuKernelModeDefault: TMenuItem
  394. AutoCheck = True
  395. Caption = 'kmDefault (slow, but exact)'
  396. RadioItem = True
  397. OnClick = MnuKernelModeClick
  398. end
  399. object MnuKernelModeTableNearest: TMenuItem
  400. Tag = 1
  401. AutoCheck = True
  402. Caption = 'kmTableNearest (fastest, "curve" sampling)'
  403. RadioItem = True
  404. OnClick = MnuKernelModeClick
  405. end
  406. object MnuKernelModeTableLinear: TMenuItem
  407. Tag = 2
  408. AutoCheck = True
  409. Caption = 'kmTableLinear (fast, "curve" approximation)'
  410. Checked = True
  411. RadioItem = True
  412. OnClick = MnuKernelModeClick
  413. end
  414. end
  415. object MnuSamplingGrid: TMenuItem
  416. Caption = 'Sampling Grid'
  417. object MnuSamplingGrid2x2: TMenuItem
  418. Tag = 2
  419. AutoCheck = True
  420. Caption = '2x2'
  421. RadioItem = True
  422. OnClick = MnuSamplingGridClick
  423. end
  424. object MnuSamplingGrid3x3: TMenuItem
  425. Tag = 3
  426. AutoCheck = True
  427. Caption = '3x3'
  428. Checked = True
  429. RadioItem = True
  430. OnClick = MnuSamplingGridClick
  431. end
  432. object MnuSamplingGrid5x5: TMenuItem
  433. Tag = 5
  434. AutoCheck = True
  435. Caption = '5x5'
  436. RadioItem = True
  437. OnClick = MnuSamplingGridClick
  438. end
  439. object MnuSamplingGrid7x7: TMenuItem
  440. Tag = 7
  441. AutoCheck = True
  442. Caption = '7x7'
  443. RadioItem = True
  444. OnClick = MnuSamplingGridClick
  445. end
  446. end
  447. object N2: TMenuItem
  448. Caption = '-'
  449. end
  450. object MnuBilinearWarp: TMenuItem
  451. AutoCheck = True
  452. Caption = 'Bilinear Warp'
  453. Checked = True
  454. OnClick = MnuBilinearWarpClick
  455. end
  456. end
  457. end
  458. end