RGBALoaderUnit.lfm 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. object RGBALoaderForm: TRGBALoaderForm
  2. Left = 200
  3. Height = 367
  4. Top = 138
  5. Width = 412
  6. BorderStyle = bsDialog
  7. Caption = 'New Bitmap Layer with Alpha Channel'
  8. ClientHeight = 367
  9. ClientWidth = 412
  10. Color = clBtnFace
  11. Font.Color = clWindowText
  12. Font.Height = -11
  13. Font.Name = 'Tahoma'
  14. Position = poScreenCenter
  15. LCLVersion = '1.0.1.3'
  16. object Bevel1: TBevel
  17. Left = 0
  18. Height = 2
  19. Top = 0
  20. Width = 412
  21. Align = alTop
  22. Shape = bsTopLine
  23. end
  24. object LblRGBImage: TLabel
  25. Left = 24
  26. Height = 14
  27. Top = 83
  28. Width = 58
  29. Caption = 'RGB Image:'
  30. ParentColor = False
  31. end
  32. object LblAlphaImage: TLabel
  33. Left = 216
  34. Height = 14
  35. Top = 83
  36. Width = 65
  37. Caption = 'Alpha Image:'
  38. ParentColor = False
  39. end
  40. object LblNote: TLabel
  41. Left = 24
  42. Height = 14
  43. Top = 294
  44. Width = 324
  45. Caption = 'If the images have different sizes, the alpha image will be rescaled.'
  46. ParentColor = False
  47. end
  48. object BtnZoomInImage: TSpeedButton
  49. Left = 148
  50. Height = 21
  51. Top = 80
  52. Width = 21
  53. Caption = '+'
  54. Flat = True
  55. Font.Color = clWindowText
  56. Font.Height = -21
  57. Font.Name = 'MS Sans Serif'
  58. Layout = blGlyphBottom
  59. NumGlyphs = 0
  60. OnClick = BtnZoomInImageClick
  61. ParentFont = False
  62. end
  63. object BtnZoomOutImage: TSpeedButton
  64. Left = 170
  65. Height = 21
  66. Top = 80
  67. Width = 21
  68. Caption = '-'
  69. Flat = True
  70. Font.Color = clWindowText
  71. Font.Height = -27
  72. Font.Name = 'MS Sans Serif'
  73. Layout = blGlyphBottom
  74. NumGlyphs = 0
  75. OnClick = BtnZoomOutImageClick
  76. ParentFont = False
  77. end
  78. object BtnZoomInAlpha: TSpeedButton
  79. Left = 340
  80. Height = 21
  81. Top = 80
  82. Width = 21
  83. Caption = '+'
  84. Flat = True
  85. Font.Color = clWindowText
  86. Font.Height = -21
  87. Font.Name = 'MS Sans Serif'
  88. Layout = blGlyphBottom
  89. NumGlyphs = 0
  90. OnClick = BtnZoomInAlphaClick
  91. ParentFont = False
  92. end
  93. object BtnZoomOutAlpha: TSpeedButton
  94. Left = 362
  95. Height = 21
  96. Top = 80
  97. Width = 21
  98. Caption = '-'
  99. Flat = True
  100. Font.Color = clWindowText
  101. Font.Height = -27
  102. Font.Name = 'MS Sans Serif'
  103. Layout = blGlyphBottom
  104. NumGlyphs = 0
  105. OnClick = BtnZoomOutAlphaClick
  106. ParentFont = False
  107. end
  108. object PnlInfo: TPanel
  109. Left = 0
  110. Height = 55
  111. Top = 2
  112. Width = 412
  113. Align = alTop
  114. BevelOuter = bvNone
  115. ClientHeight = 55
  116. ClientWidth = 412
  117. Color = clWindow
  118. ParentColor = False
  119. TabOrder = 0
  120. object LblInfo: TLabel
  121. Left = 16
  122. Height = 40
  123. Top = 6
  124. Width = 383
  125. Caption = 'Load two images, one of them will be used to fill RGB components '#13#10'of the layer, another will be converted to a grayscale image and '#13#10'used as alpha channel'
  126. Font.Color = clWindowText
  127. Font.Height = -11
  128. Font.Name = 'Verdana'
  129. ParentColor = False
  130. ParentFont = False
  131. end
  132. end
  133. object ImgRGB: TImgView32
  134. Left = 24
  135. Height = 169
  136. Top = 112
  137. Width = 169
  138. Bitmap.ResamplerClassName = 'TNearestResampler'
  139. BitmapAlign = baCustom
  140. Color = clAppWorkspace
  141. ParentColor = False
  142. Scale = 1
  143. ScaleMode = smScale
  144. ScrollBars.Color = clBtnShadow
  145. ScrollBars.ShowHandleGrip = True
  146. ScrollBars.Style = rbsDefault
  147. ScrollBars.Size = 16
  148. OverSize = 0
  149. TabOrder = 1
  150. end
  151. object BtnLoadImage: TButton
  152. Left = 96
  153. Height = 21
  154. Top = 80
  155. Width = 49
  156. Caption = 'Load...'
  157. OnClick = BtnLoadImageClick
  158. TabOrder = 2
  159. end
  160. object ImgAlpha: TImgView32
  161. Left = 216
  162. Height = 169
  163. Top = 112
  164. Width = 169
  165. Bitmap.ResamplerClassName = 'TNearestResampler'
  166. BitmapAlign = baCustom
  167. Color = clAppWorkspace
  168. ParentColor = False
  169. Scale = 1
  170. ScaleMode = smScale
  171. ScrollBars.Color = clBtnShadow
  172. ScrollBars.ShowHandleGrip = True
  173. ScrollBars.Style = rbsDefault
  174. ScrollBars.Size = 16
  175. OverSize = 0
  176. TabOrder = 3
  177. end
  178. object BtnLoadAlpha: TButton
  179. Left = 288
  180. Height = 21
  181. Top = 80
  182. Width = 49
  183. Caption = 'Load...'
  184. OnClick = BtnLoadAlphaClick
  185. TabOrder = 4
  186. end
  187. object BtnOK: TButton
  188. Left = 232
  189. Height = 21
  190. Top = 328
  191. Width = 75
  192. Caption = 'OK'
  193. Default = True
  194. ModalResult = 1
  195. TabOrder = 5
  196. end
  197. object BtnCancel: TButton
  198. Left = 312
  199. Height = 21
  200. Top = 328
  201. Width = 75
  202. Cancel = True
  203. Caption = 'Cancel'
  204. ModalResult = 2
  205. TabOrder = 6
  206. end
  207. object BtnResetScales: TButton
  208. Left = 24
  209. Height = 21
  210. Top = 328
  211. Width = 75
  212. Caption = 'Reset Scales'
  213. OnClick = BtnResetScalesClick
  214. TabOrder = 7
  215. end
  216. object OpenPictureDialog: TOpenPictureDialog
  217. left = 192
  218. top = 56
  219. end
  220. end