Changeset 16 for trunk/UMainForm.pas
- Timestamp:
- Mar 24, 2011, 7:05:53 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UMainForm.pas
r14 r16 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, 9 ComCtrls, Menus, ActnList, UCore, UPlatform, Math, DateUtils ;9 ComCtrls, Menus, ActnList, UCore, UPlatform, Math, DateUtils, GraphType; 10 10 11 11 type … … 14 14 15 15 TMainForm = class(TForm) 16 AAbout: TAction; 17 AShowRawImageDesc: TAction; 16 18 AShowMap: TAction; 17 19 ANewGame: TAction; … … 27 29 MenuItem5: TMenuItem; 28 30 MenuItem6: TMenuItem; 31 MenuItem7: TMenuItem; 32 MenuItem8: TMenuItem; 29 33 StatusBar1: TStatusBar; 30 34 TimerDraw: TTimer; … … 34 38 procedure ANewGameExecute(Sender: TObject); 35 39 procedure AShowMapExecute(Sender: TObject); 40 procedure AShowRawImageDescExecute(Sender: TObject); 36 41 procedure FormCreate(Sender: TObject); 37 42 procedure FormDeactivate(Sender: TObject); … … 172 177 end; 173 178 179 procedure TMainForm.AShowRawImageDescExecute(Sender: TObject); 180 var 181 List: TStringList; 182 begin 183 with Image1.Picture.Bitmap.RawImage, Description do 184 try 185 List := TStringList.Create; 186 with List do begin 187 Add('Format: ' + RawImageColorFormatNames[Format]); 188 Add('Width: ' + IntToStr(Width)); 189 Add('Height: ' + IntToStr(Height)); 190 Add('Depth: ' + IntToStr(Depth)); 191 Add('BitOrder: ' + RawImageBitOrderNames[BitOrder]); 192 Add('ByteOrder: ' + RawImageByteOrderNames[ByteOrder]); 193 Add('LineOrder: ' + RawImageLineOrderNames[LineOrder]); 194 Add('LineEnd: ' + RawImageLineEndNames[LineEnd]); 195 Add('BitsPerPixel: ' + IntToStr(BitsPerPixel)); 196 Add('RedPrec: ' + IntToStr(RedPrec)); 197 Add('RedShift: ' + IntToStr(RedShift)); 198 Add('GreenPrec: ' + IntToStr(GreenPrec)); 199 Add('GreenShift: ' + IntToStr(GreenShift)); 200 Add('BluePrec: ' + IntToStr(BluePrec)); 201 Add('BlueShift: ' + IntToStr(BlueShift)); 202 Add('AlphaPrec: ' + IntToStr(AlphaPrec)); 203 Add('AlphaShift: ' + IntToStr(AlphaShift)); 204 end; 205 ShowMessage(List.Text); 206 finally 207 List.Free; 208 end; 209 end; 210 174 211 procedure TMainForm.AExitExecute(Sender: TObject); 175 212 begin
Note:
See TracChangeset
for help on using the changeset viewer.