MainUnit.dfm 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. object MainForm: TMainForm
  2. Left = 223
  3. Top = 109
  4. Caption = 'Sprites Example'
  5. ClientHeight = 684
  6. ClientWidth = 852
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. OnCreate = FormCreate
  15. OnDestroy = FormDestroy
  16. DesignSize = (
  17. 852
  18. 684)
  19. PixelsPerInch = 96
  20. TextHeight = 13
  21. object LblTotal: TLabel
  22. Left = 12
  23. Top = 654
  24. Width = 28
  25. Height = 13
  26. Anchors = [akLeft, akBottom]
  27. Caption = 'Total:'
  28. end
  29. object LblFPS: TLabel
  30. Left = 272
  31. Top = 654
  32. Width = 81
  33. Height = 17
  34. Anchors = [akLeft, akBottom]
  35. AutoSize = False
  36. end
  37. object LblDimension: TLabel
  38. Left = 360
  39. Top = 654
  40. Width = 113
  41. Height = 17
  42. Anchors = [akLeft, akBottom]
  43. AutoSize = False
  44. end
  45. object Image32: TImage32
  46. Left = 8
  47. Top = 48
  48. Width = 836
  49. Height = 592
  50. Anchors = [akLeft, akTop, akRight, akBottom]
  51. Bitmap.ResamplerClassName = 'TNearestResampler'
  52. BitmapAlign = baTile
  53. Color = clWhite
  54. ParentColor = False
  55. Scale = 2.000000000000000000
  56. ScaleMode = smScale
  57. TabOrder = 0
  58. OnResize = Image32Resize
  59. end
  60. object BtnAdd: TButton
  61. Left = 627
  62. Top = 652
  63. Width = 69
  64. Height = 21
  65. Anchors = [akRight, akBottom]
  66. Caption = 'Add 10'
  67. TabOrder = 1
  68. OnClick = BtnAddClick
  69. end
  70. object EdtLayerCount: TEdit
  71. Left = 44
  72. Top = 652
  73. Width = 65
  74. Height = 19
  75. Anchors = [akLeft, akBottom]
  76. Ctl3D = False
  77. ParentCtl3D = False
  78. ReadOnly = True
  79. TabOrder = 2
  80. Text = '0 layers'
  81. end
  82. object BtnClearAll: TButton
  83. Left = 776
  84. Top = 652
  85. Width = 68
  86. Height = 21
  87. Anchors = [akRight, akBottom]
  88. Caption = 'Clear All'
  89. TabOrder = 3
  90. OnClick = BtnClearAllClick
  91. end
  92. object CbxUseRepaintOpt: TCheckBox
  93. Left = 120
  94. Top = 642
  95. Width = 137
  96. Height = 17
  97. Anchors = [akLeft, akBottom]
  98. Caption = 'Use Repaint Optimizer'
  99. TabOrder = 4
  100. OnClick = CbxUseRepaintOptClick
  101. end
  102. object BtnRemove: TButton
  103. Left = 704
  104. Top = 652
  105. Width = 64
  106. Height = 21
  107. Anchors = [akRight, akBottom]
  108. Caption = 'Remove 10'
  109. TabOrder = 5
  110. OnClick = BtnRemoveClick
  111. end
  112. object Memo: TMemo
  113. Left = 8
  114. Top = 6
  115. Width = 835
  116. Height = 35
  117. Anchors = [akLeft, akTop, akRight]
  118. Color = clInfoBk
  119. Lines.Strings = (
  120. 'This demonstration animates the sprites as fast as possible. It'#39 +
  121. 's a simple throughput test that is mostly limited by the bus and' +
  122. ' memory bandwidth.'
  123. 'Each sprite is an instance of the TBitmapLayer class. Use the ch' +
  124. 'eckbox below to enable or disable the repaint optimizations.')
  125. ReadOnly = True
  126. TabOrder = 6
  127. end
  128. object BtnBenchmark: TButton
  129. Left = 520
  130. Top = 652
  131. Width = 96
  132. Height = 21
  133. Anchors = [akRight, akBottom]
  134. Caption = 'Benchmark'
  135. TabOrder = 7
  136. OnClick = BtnBenchmarkClick
  137. end
  138. object CheckBoxBatch: TCheckBox
  139. Left = 120
  140. Top = 659
  141. Width = 137
  142. Height = 17
  143. Anchors = [akLeft, akBottom]
  144. Caption = 'Batch updates'
  145. TabOrder = 8
  146. OnClick = CheckBoxBatchClick
  147. end
  148. object BitmapList: TBitmap32List
  149. Bitmaps = <
  150. item
  151. Bitmap.ResamplerClassName = 'TNearestResampler'
  152. end
  153. item
  154. Bitmap.ResamplerClassName = 'TNearestResampler'
  155. end
  156. item
  157. Bitmap.ResamplerClassName = 'TNearestResampler'
  158. end>
  159. Left = 432
  160. Top = 112
  161. end
  162. object TimerFPS: TTimer
  163. Interval = 5000
  164. OnTimer = TimerFPSTimer
  165. Left = 384
  166. Top = 584
  167. end
  168. end