MainUnit.dfm 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. object FrmResamplersExample: TFrmResamplersExample
  2. Left = 270
  3. Top = 228
  4. Caption = 'Resamplers Example'
  5. ClientHeight = 395
  6. ClientWidth = 475
  7. Color = clBtnFace
  8. Constraints.MinHeight = 200
  9. Constraints.MinWidth = 200
  10. ParentFont = True
  11. TextHeight = 15
  12. object SidePanel: TPanel
  13. Left = 329
  14. Top = 0
  15. Width = 146
  16. Height = 376
  17. Align = alRight
  18. BevelOuter = bvNone
  19. TabOrder = 1
  20. object PnlResampler: TPanel
  21. Left = 0
  22. Top = 0
  23. Width = 146
  24. Height = 160
  25. Align = alTop
  26. BevelKind = bkFlat
  27. BevelOuter = bvNone
  28. TabOrder = 0
  29. DesignSize = (
  30. 142
  31. 156)
  32. object LblResamplersClass: TLabel
  33. Left = 8
  34. Top = 24
  35. Width = 88
  36. Height = 15
  37. Anchors = [akTop, akRight]
  38. Caption = 'Resampler Class:'
  39. ExplicitLeft = 12
  40. end
  41. object LblPixelAccessMode: TLabel
  42. Left = 8
  43. Top = 67
  44. Width = 101
  45. Height = 15
  46. Anchors = [akTop, akRight]
  47. Caption = 'Pixel Access Mode:'
  48. ExplicitLeft = 12
  49. end
  50. object LblWrapMode: TLabel
  51. Left = 8
  52. Top = 110
  53. Width = 65
  54. Height = 15
  55. Anchors = [akTop, akRight]
  56. Caption = 'Wrap Mode:'
  57. ExplicitLeft = 12
  58. end
  59. object PnlResamplerProperties: TPanel
  60. Left = 0
  61. Top = 0
  62. Width = 142
  63. Height = 16
  64. Align = alTop
  65. BevelOuter = bvNone
  66. Caption = 'Resampler Properties'
  67. Color = clHighlight
  68. Font.Charset = DEFAULT_CHARSET
  69. Font.Color = clHighlightText
  70. Font.Height = -11
  71. Font.Name = 'Segoe UI'
  72. Font.Style = []
  73. ParentBackground = False
  74. ParentFont = False
  75. TabOrder = 0
  76. end
  77. object ComboBoxResamplerClassName: TComboBox
  78. Left = 12
  79. Top = 40
  80. Width = 119
  81. Height = 23
  82. Style = csDropDownList
  83. Anchors = [akTop, akRight]
  84. TabOrder = 1
  85. OnChange = ComboBoxResamplerClassNameChange
  86. end
  87. object ComboBoxPixelAccessMode: TComboBox
  88. Left = 12
  89. Top = 83
  90. Width = 119
  91. Height = 23
  92. Style = csDropDownList
  93. Anchors = [akTop, akRight]
  94. TabOrder = 2
  95. OnChange = ComboBoxPixelAccessModeChange
  96. Items.Strings = (
  97. 'Unsafe'
  98. 'Safe'
  99. 'Wrap')
  100. end
  101. object ComboBoxWrapMode: TComboBox
  102. Left = 12
  103. Top = 126
  104. Width = 119
  105. Height = 23
  106. Style = csDropDownList
  107. Anchors = [akTop, akRight]
  108. TabOrder = 3
  109. OnChange = ComboBoxPixelAccessModeChange
  110. Items.Strings = (
  111. 'Clamp'
  112. 'Repeat'
  113. 'Mirror')
  114. end
  115. end
  116. object PanelKernel: TPanel
  117. Left = 0
  118. Top = 160
  119. Width = 146
  120. Height = 201
  121. Align = alTop
  122. BevelKind = bkFlat
  123. BevelOuter = bvNone
  124. TabOrder = 1
  125. Visible = False
  126. DesignSize = (
  127. 142
  128. 197)
  129. object LblKernelClass: TLabel
  130. Left = 8
  131. Top = 24
  132. Width = 66
  133. Height = 15
  134. Anchors = [akTop, akRight]
  135. Caption = 'Kernel Class:'
  136. ExplicitLeft = 12
  137. end
  138. object LblKernelMode: TLabel
  139. Left = 8
  140. Top = 67
  141. Width = 70
  142. Height = 15
  143. Anchors = [akTop, akRight]
  144. Caption = 'Kernel Mode:'
  145. ExplicitLeft = 12
  146. end
  147. object LblTableSize: TLabel
  148. Left = 8
  149. Top = 116
  150. Width = 99
  151. Height = 15
  152. Caption = 'Table Size (32/100):'
  153. end
  154. object LblParameter: TLabel
  155. Left = 8
  156. Top = 155
  157. Width = 57
  158. Height = 15
  159. Caption = 'Parameter:'
  160. Visible = False
  161. end
  162. object PnlKernelProperties: TPanel
  163. Left = 0
  164. Top = 0
  165. Width = 142
  166. Height = 16
  167. Align = alTop
  168. BevelOuter = bvNone
  169. Caption = 'Kernel Properties'
  170. Color = clHighlight
  171. Font.Charset = DEFAULT_CHARSET
  172. Font.Color = clHighlightText
  173. Font.Height = -11
  174. Font.Name = 'Segoe UI'
  175. Font.Style = []
  176. ParentBackground = False
  177. ParentFont = False
  178. TabOrder = 0
  179. end
  180. object ComboBoxKernelClassName: TComboBox
  181. Left = 12
  182. Top = 40
  183. Width = 119
  184. Height = 23
  185. Style = csDropDownList
  186. Anchors = [akTop, akRight]
  187. TabOrder = 1
  188. OnChange = ComboBoxKernelClassNameChange
  189. end
  190. object ComboBoxKernelMode: TComboBox
  191. Left = 12
  192. Top = 83
  193. Width = 119
  194. Height = 23
  195. Style = csDropDownList
  196. Anchors = [akTop, akRight]
  197. ItemIndex = 0
  198. TabOrder = 2
  199. Text = 'Default (precise, slow)'
  200. OnChange = ComboBoxKernelModeChange
  201. Items.Strings = (
  202. 'Default (precise, slow)'
  203. 'Table Nearest (truncated, fastest)'
  204. 'Table Linear (interpolated, fast)')
  205. end
  206. object GaugeBarTableSize: TGaugeBar
  207. Left = 16
  208. Top = 136
  209. Width = 113
  210. Height = 12
  211. Backgnd = bgPattern
  212. HandleSize = 16
  213. Min = 1
  214. ShowArrows = False
  215. ShowHandleGrip = True
  216. Style = rbsMac
  217. Position = 32
  218. OnChange = GaugeBarTableSizeChange
  219. end
  220. object GaugeBarParameter: TGaugeBar
  221. Left = 16
  222. Top = 175
  223. Width = 113
  224. Height = 12
  225. Backgnd = bgPattern
  226. HandleSize = 16
  227. Min = 1
  228. ShowArrows = False
  229. ShowHandleGrip = True
  230. Style = rbsMac
  231. Visible = False
  232. Position = 50
  233. OnChange = GaugeBarParameterChange
  234. end
  235. end
  236. end
  237. object PageControl: TPageControl
  238. Left = 0
  239. Top = 0
  240. Width = 329
  241. Height = 376
  242. Hint = 'Downsampling using StretchTransfer resampling'
  243. ActivePage = TabManual
  244. Align = alClient
  245. ParentShowHint = False
  246. ShowHint = True
  247. TabOrder = 0
  248. OnChange = ComboBoxResamplerClassNameChange
  249. object TabManual: TTabSheet
  250. Caption = 'Manual'
  251. object ImagePattern: TImage32
  252. Left = 0
  253. Top = 0
  254. Width = 321
  255. Height = 346
  256. Hint = 'Upsampling using manual resampling'
  257. Align = alClient
  258. Bitmap.ResamplerClassName = 'TKernelResampler'
  259. Bitmap.Resampler.KernelClassName = 'TCosineKernel'
  260. Bitmap.Resampler.KernelMode = kmTableLinear
  261. Bitmap.Resampler.TableSize = 32
  262. BitmapAlign = baTopLeft
  263. RepaintMode = rmOptimizer
  264. Scale = 1.000000000000000000
  265. ScaleMode = smStretch
  266. TabOrder = 0
  267. OnResize = ImagePatternResize
  268. end
  269. end
  270. object TabStretchTransfer: TTabSheet
  271. Caption = 'StretchTransfer'
  272. ImageIndex = 3
  273. object PaintBoxStretchTransfer: TPaintBox32
  274. Left = 0
  275. Top = 0
  276. Width = 321
  277. Height = 346
  278. Hint = 'Upsampling using StretchTransfer resampling'
  279. Align = alClient
  280. TabOrder = 0
  281. OnPaintBuffer = PaintBoxStretchTransferPaintBuffer
  282. ExplicitHeight = 348
  283. end
  284. end
  285. object TabResampling: TTabSheet
  286. Caption = 'Downsampling'
  287. ImageIndex = 1
  288. object PaintBoxResampling: TPaintBox32
  289. Left = 0
  290. Top = 0
  291. Width = 321
  292. Height = 346
  293. Align = alClient
  294. RepaintMode = rmOptimizer
  295. TabOrder = 0
  296. OnPaintBuffer = PaintBoxResamplingPaintBuffer
  297. ExplicitHeight = 348
  298. end
  299. end
  300. object TabKernel: TTabSheet
  301. Hint = 'Kernel curve'
  302. Caption = 'Curve'
  303. ImageIndex = 2
  304. TabVisible = False
  305. object PaintBoxCurve: TPaintBox32
  306. Left = 0
  307. Top = 0
  308. Width = 321
  309. Height = 346
  310. Align = alClient
  311. TabOrder = 0
  312. OnPaintBuffer = PaintBoxCurvePaintBuffer
  313. ExplicitHeight = 348
  314. end
  315. end
  316. end
  317. object StatusBar: TStatusBar
  318. Left = 0
  319. Top = 376
  320. Width = 475
  321. Height = 19
  322. Panels = <
  323. item
  324. Width = 50
  325. end>
  326. end
  327. object TimerTableSize: TTimer
  328. Enabled = False
  329. Interval = 100
  330. OnTimer = TimerTableSizeTimer
  331. Left = 144
  332. Top = 144
  333. end
  334. object TimerParameter: TTimer
  335. Enabled = False
  336. Interval = 100
  337. OnTimer = TimerParameterTimer
  338. Left = 144
  339. Top = 200
  340. end
  341. end