123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458 |
- object MainForm: TMainForm
- Left = 254
- Top = 244
- Caption = 'Image Warping Example'
- ClientHeight = 623
- ClientWidth = 623
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = []
- Menu = MainMenu
- Position = poScreenCenter
- OnClose = FormClose
- OnCreate = FormCreate
- TextHeight = 13
- object PnlMain: TPanel
- Left = 482
- Top = 0
- Width = 141
- Height = 623
- Align = alRight
- BevelOuter = bvNone
- BevelWidth = 2
- Caption = 'PnlMain'
- TabOrder = 0
- object PnlGeneral: TPanel
- Left = 0
- Top = 0
- Width = 141
- Height = 73
- Align = alTop
- TabOrder = 0
- object LblGeneral: TLabel
- Left = 1
- Top = 1
- Width = 139
- Height = 16
- Align = alTop
- Alignment = taCenter
- AutoSize = False
- Caption = 'General'
- Color = clGray
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWhite
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = [fsBold]
- ParentColor = False
- ParentFont = False
- Layout = tlCenter
- end
- object LblRemapScale: TLabel
- Left = 8
- Top = 24
- Width = 65
- Height = 13
- Caption = 'Remap Scale:'
- end
- object ScaleBar: TGaugeBar
- Left = 8
- Top = 40
- Width = 121
- Height = 15
- Backgnd = bgPattern
- LargeChange = 10
- Max = 300
- Min = -300
- ShowHandleGrip = False
- Style = rbsMac
- Position = 100
- OnMouseUp = ScaleBarMouseUp
- end
- end
- object PnlBrush: TPanel
- Left = 0
- Top = 233
- Width = 141
- Height = 304
- Align = alTop
- TabOrder = 1
- object LblBrush: TLabel
- Left = 1
- Top = 1
- Width = 139
- Height = 16
- Align = alTop
- Alignment = taCenter
- AutoSize = False
- Caption = 'Brush'
- Color = clGray
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWhite
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = [fsBold]
- ParentColor = False
- ParentFont = False
- Layout = tlCenter
- end
- object LblBrushFeather: TLabel
- Left = 8
- Top = 88
- Width = 42
- Height = 13
- Caption = 'Feather:'
- end
- object LblBrushPressure: TLabel
- Left = 8
- Top = 56
- Width = 46
- Height = 13
- Caption = 'Pressure:'
- end
- object LblBrushPinch: TLabel
- Left = 8
- Top = 120
- Width = 29
- Height = 13
- Caption = 'Pinch:'
- end
- object LblBrushSize: TLabel
- Left = 8
- Top = 24
- Width = 23
- Height = 13
- Caption = 'Size:'
- Transparent = True
- end
- object LblBrushMesh: TLabel
- Left = 8
- Top = 160
- Width = 59
- Height = 13
- Caption = 'Brush Mesh:'
- Transparent = True
- end
- object FeatherBar: TGaugeBar
- Left = 8
- Top = 104
- Width = 121
- Height = 15
- Backgnd = bgPattern
- LargeChange = 10
- ShowHandleGrip = False
- Style = rbsMac
- Position = 12
- OnChange = PressureBarChange
- end
- object PressureBar: TGaugeBar
- Left = 8
- Top = 72
- Width = 121
- Height = 15
- Backgnd = bgPattern
- LargeChange = 10
- ShowHandleGrip = False
- Style = rbsMac
- Position = 50
- OnChange = PressureBarChange
- end
- object PinchBar: TGaugeBar
- Left = 8
- Top = 136
- Width = 121
- Height = 15
- Backgnd = bgPattern
- LargeChange = 10
- Min = -100
- ShowHandleGrip = False
- Style = rbsMac
- Position = 0
- OnChange = PressureBarChange
- end
- object SizeBar: TGaugeBar
- Left = 8
- Top = 40
- Width = 121
- Height = 15
- Backgnd = bgPattern
- LargeChange = 10
- Max = 500
- Min = 5
- ShowHandleGrip = False
- Style = rbsMac
- Position = 100
- OnChange = SizeBarChange
- OnMouseUp = GaugeMouseUp
- end
- object BrushMeshPreview: TPaintBox32
- Left = 8
- Top = 176
- Width = 121
- Height = 121
- TabOrder = 4
- OnResize = BrushMeshPreviewResize
- end
- end
- object ToolPanel: TPanel
- Left = 0
- Top = 73
- Width = 141
- Height = 160
- Align = alTop
- TabOrder = 2
- object LblWaroTool: TLabel
- Left = 1
- Top = 1
- Width = 139
- Height = 16
- Align = alTop
- Alignment = taCenter
- AutoSize = False
- Caption = 'Warp Tool'
- Color = clGray
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWhite
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = [fsBold]
- ParentColor = False
- ParentFont = False
- Layout = tlCenter
- end
- object LblParam: TLabel
- Left = 8
- Top = 88
- Width = 30
- Height = 13
- Caption = 'Param'
- Enabled = False
- end
- object RateLabel: TLabel
- Left = 8
- Top = 120
- Width = 27
- Height = 13
- Caption = 'Rate:'
- Enabled = False
- end
- object ToolGroup: TRadioGroup
- Left = 8
- Top = 24
- Width = 121
- Height = 57
- Columns = 2
- ItemIndex = 0
- Items.Strings = (
- 'Warp'
- 'Zoom'
- 'Twirl'
- 'Flower')
- TabOrder = 0
- OnClick = ToolGroupClick
- end
- object ParamBar: TGaugeBar
- Left = 8
- Top = 104
- Width = 121
- Height = 15
- Backgnd = bgPattern
- Enabled = False
- LargeChange = 10
- ShowHandleGrip = False
- Style = rbsMac
- Position = 20
- OnChange = PressureBarChange
- OnMouseUp = GaugeMouseUp
- end
- object RateBar: TGaugeBar
- Left = 8
- Top = 136
- Width = 121
- Height = 15
- Backgnd = bgPattern
- Enabled = False
- LargeChange = 10
- Max = 399
- ShowHandleGrip = False
- Style = rbsMac
- Position = 350
- OnChange = RateBarChange
- OnMouseUp = GaugeMouseUp
- end
- end
- end
- object DstImg: TImgView32
- Left = 0
- Top = 0
- Width = 482
- Height = 623
- Align = alClient
- Bitmap.DrawMode = dmBlend
- Bitmap.ResamplerClassName = 'TNearestResampler'
- BitmapAlign = baCustom
- RepaintMode = rmOptimizer
- Scale = 1.000000000000000000
- ScaleMode = smScale
- ScrollBars.Increment = 0
- ScrollBars.Size = 16
- ScrollBars.Visibility = svAuto
- OverSize = 0
- TabOrder = 1
- OnMouseDown = DstImgMouseDown
- OnMouseMove = DstImgMouseMove
- OnMouseUp = DstImgMouseUp
- OnPaintStage = DstImgPaintStage
- end
- object OpenPictureDialog: TOpenPictureDialog
- Left = 136
- Top = 8
- end
- object UpdateTimer: TTimer
- Interval = 50
- OnTimer = UpdateTimerTimer
- Left = 344
- Top = 8
- end
- object OpenMeshDialog: TOpenDialog
- Filter = 'Photoshop Liquify Mesh (*.msh)|*.msh'
- Options = [ofHideReadOnly, ofFileMustExist, ofEnableSizing]
- Left = 240
- Top = 8
- end
- object SaveMeshDialog: TSaveDialog
- Filter = 'Photoshop Liquify Mesh (*.msh)|*.msh'
- Options = [ofOverwritePrompt, ofHideReadOnly, ofEnableSizing]
- Left = 240
- Top = 64
- end
- object SavePictureDialog: TSavePictureDialog
- DefaultExt = '*.bmp'
- Filter = 'Bitmaps (*.bmp)|*.bmp'
- FilterIndex = 0
- Options = [ofOverwritePrompt, ofHideReadOnly, ofEnableSizing]
- Left = 136
- Top = 64
- end
- object MainMenu: TMainMenu
- Left = 344
- Top = 64
- object MnuFile: TMenuItem
- Caption = 'File'
- object MnuFileOpenImage: TMenuItem
- Caption = '&Open Image...'
- ShortCut = 16463
- OnClick = MnuFileOpenImageClick
- end
- object MnuFileSaveImage: TMenuItem
- Caption = '&Save Image...'
- ShortCut = 16467
- OnClick = MnuFileSaveImageClick
- end
- object N3: TMenuItem
- Caption = '-'
- end
- object MnuFileOpenMesh: TMenuItem
- Caption = 'Open Mesh...'
- OnClick = MnuFileOpenMeshClick
- end
- object MnuFileSaveMesh: TMenuItem
- Caption = 'Save Mesh...'
- OnClick = MnuFileSaveMeshClick
- end
- object MnuResetMesh: TMenuItem
- Caption = 'Reset Mesh'
- ShortCut = 16466
- OnClick = MnuResetMeshClick
- end
- object N4: TMenuItem
- Caption = '-'
- end
- object MnuFileExit: TMenuItem
- Caption = 'Exit'
- OnClick = MnuFileExitClick
- end
- end
- object MnuSampling: TMenuItem
- Caption = 'Sampling'
- object MnuSupersampleNow: TMenuItem
- Caption = 'Supersample Now!'
- OnClick = MnuSupersampleNowClick
- end
- object N1: TMenuItem
- Caption = '-'
- end
- object MnuSamplingKernel: TMenuItem
- Caption = 'Sampling Kernel'
- end
- object MnuKernelMode: TMenuItem
- Caption = 'KernelMode'
- object MnuKernelModeDefault: TMenuItem
- AutoCheck = True
- Caption = 'kmDefault (slow, but exact)'
- RadioItem = True
- OnClick = MnuKernelModeClick
- end
- object MnuKernelModeTableNearest: TMenuItem
- Tag = 1
- AutoCheck = True
- Caption = 'kmTableNearest (fastest, "curve" sampling)'
- RadioItem = True
- OnClick = MnuKernelModeClick
- end
- object MnuKernelModeTableLinear: TMenuItem
- Tag = 2
- AutoCheck = True
- Caption = 'kmTableLinear (fast, "curve" approximation)'
- Checked = True
- RadioItem = True
- OnClick = MnuKernelModeClick
- end
- end
- object MnuSamplingGrid: TMenuItem
- Caption = 'Sampling Grid'
- object MnuSamplingGrid2x2: TMenuItem
- Tag = 2
- AutoCheck = True
- Caption = '2x2'
- RadioItem = True
- OnClick = MnuSamplingGridClick
- end
- object MnuSamplingGrid3x3: TMenuItem
- Tag = 3
- AutoCheck = True
- Caption = '3x3'
- Checked = True
- RadioItem = True
- OnClick = MnuSamplingGridClick
- end
- object MnuSamplingGrid5x5: TMenuItem
- Tag = 5
- AutoCheck = True
- Caption = '5x5'
- RadioItem = True
- OnClick = MnuSamplingGridClick
- end
- object MnuSamplingGrid7x7: TMenuItem
- Tag = 7
- AutoCheck = True
- Caption = '7x7'
- RadioItem = True
- OnClick = MnuSamplingGridClick
- end
- end
- object N2: TMenuItem
- Caption = '-'
- end
- object MnuBilinearWarp: TMenuItem
- AutoCheck = True
- Caption = 'Bilinear Warp'
- Checked = True
- OnClick = MnuBilinearWarpClick
- end
- end
- end
- end
|