Changeset 7 for trunk/UCore.pas
- Timestamp:
- Sep 19, 2014, 9:25:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r6 r7 13 13 14 14 TCore = class(TDataModule) 15 AImageMirror: TAction; 16 AImageFlip: TAction; 17 AImageRandom: TAction; 15 18 AFileSaveAs: TAction; 16 19 AFileSave: TAction; … … 21 24 AZoomIn: TAction; 22 25 AZoomOut: TAction; 23 AImageRandom: TAction;24 26 AImageClear: TAction; 25 27 AExit: TAction; … … 29 31 procedure AExitExecute(Sender: TObject); 30 32 procedure AImageClearExecute(Sender: TObject); 33 procedure AImageFlipExecute(Sender: TObject); 34 procedure AImageMirrorExecute(Sender: TObject); 31 35 procedure AImageRandomExecute(Sender: TObject); 32 36 procedure AFileNewExecute(Sender: TObject); … … 49 53 50 54 uses 51 UFormNew, UFormMain, Forms, UColorRGBA8, UColorGray8 ;55 UFormNew, UFormMain, Forms, UColorRGBA8, UColorGray8, UColorGray1; 52 56 53 57 { TCore } … … 59 63 ColorManager.RegisterFormat(TGColorFormatRGBA8); 60 64 ColorManager.RegisterFormat(TGColorFormatGray8); 65 ColorManager.RegisterFormat(TGColorFormatGray1); 61 66 62 67 // Set default … … 112 117 end; 113 118 119 procedure TCore.AImageFlipExecute(Sender: TObject); 120 begin 121 Project.Bitmap.Flip; 122 FormMain.Redraw; 123 end; 124 125 procedure TCore.AImageMirrorExecute(Sender: TObject); 126 begin 127 Project.Bitmap.Mirror; 128 FormMain.Redraw; 129 end; 130 114 131 procedure TCore.AImageRandomExecute(Sender: TObject); 115 132 begin
Note:
See TracChangeset
for help on using the changeset viewer.