Changeset 2
- Timestamp:
- Jun 18, 2024, 12:46:47 PM (5 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:ignore
set to
lib
ImageFile.lps
ImageFile.res
ImageFile
-
Property svn:ignore
set to
-
trunk/FormMain.lfm
r1 r2 9 9 DesignTimePPI = 144 10 10 OnShow = FormShow 11 LCLVersion = ' 2.2.2.0'11 LCLVersion = '3.4.0.0' 12 12 object MemoLog: TMemo 13 13 Left = 15 -
trunk/FormMain.pas
r1 r2 1 unit UFormMain;1 unit FormMain; 2 2 3 3 interface … … 21 21 var 22 22 FormMain: TFormMain; 23 23 24 24 25 implementation … … 63 64 Inc(Y); 64 65 while Y < Image.Picture.Bitmap.Height do begin 65 //Line := PColor(Image.Picture.Bitmap.RawImage.Data +66 //Image.Picture.Bitmap.Height * Image.Picture.Bitmap.RawImage.Description.BytesPerLine -67 //Y * Image.Picture.Bitmap.RawImage.Description.BytesPerLine);68 66 Line := Image.Picture.Bitmap.ScanLine[Y]; 69 67 X := Offset.X; 70 68 while X < Image.Picture.Bitmap.Width do begin 71 69 Pixel := PColor(Line + X)^; 72 // Buffer[I] := //((Pixel shr 21) and $7) or73 // (((Pixel shr 12) and $f) shl 4) or74 // (((Pixel shr 4) and $f) shl 0);75 70 Buffer[I] := (((Pixel shr 20) and $f) shl 0) or 76 71 (((Pixel shr 12) and $f) shl 4); 77 72 Inc(X, 2); 78 //Buffer[I + 1] := (Pixel shr 8) and $ff;79 //Buffer[I + 2] := (Pixel shr 0) and $ff;80 73 Inc(I, 1); 81 74 if I >= Length(Buffer) then Break; -
trunk/ImageFile.lpi
r1 r2 38 38 </Unit0> 39 39 <Unit1> 40 <Filename Value=" UFormMain.pas"/>40 <Filename Value="FormMain.pas"/> 41 41 <IsPartOfProject Value="True"/> 42 42 <ComponentName Value="FormMain"/> … … 57 57 <Parsing> 58 58 <SyntaxOptions> 59 <SyntaxMode Value="Delphi"/> 59 60 <IncludeAssertionCode Value="True"/> 60 61 </SyntaxOptions> … … 70 71 </CodeGeneration> 71 72 <Linking> 73 <Debugging> 74 <DebugInfoType Value="dsDwarf3"/> 75 </Debugging> 72 76 <Options> 73 77 <Win32> -
trunk/ImageFile.lpr
r1 r2 1 1 program ImageFile; 2 3 {$mode objfpc}{$H+}4 2 5 3 uses … … 8 6 {$ENDIF}{$ENDIF} 9 7 Interfaces, // this includes the LCL widgetset 10 Forms, UFormMain8 Forms, FormMain 11 9 { you can add units after this }; 12 10 … … 17 15 Application.Scaled:=True; 18 16 Application.Initialize; 19 Application.CreateForm(TFormMain, FormMain );17 Application.CreateForm(TFormMain, FormMain.FormMain); 20 18 Application.Run; 21 19 end.
Note:
See TracChangeset
for help on using the changeset viewer.