Changeset 2 for trunk


Ignore:
Timestamp:
Jun 18, 2024, 12:46:47 PM (5 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
Location:
trunk
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      lib
      ImageFile.lps
      ImageFile.res
      ImageFile
  • trunk/FormMain.lfm

    r1 r2  
    99  DesignTimePPI = 144
    1010  OnShow = FormShow
    11   LCLVersion = '2.2.2.0'
     11  LCLVersion = '3.4.0.0'
    1212  object MemoLog: TMemo
    1313    Left = 15
  • trunk/FormMain.pas

    r1 r2  
    1 unit UFormMain;
     1unit FormMain;
    22
    33interface
     
    2121var
    2222  FormMain: TFormMain;
     23
    2324
    2425implementation
     
    6364  Inc(Y);
    6465  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);
    6866    Line := Image.Picture.Bitmap.ScanLine[Y];
    6967    X := Offset.X;
    7068    while X < Image.Picture.Bitmap.Width do begin
    7169      Pixel := PColor(Line + X)^;
    72 //      Buffer[I] := //((Pixel shr 21) and $7) or
    73  //       (((Pixel shr 12) and $f) shl 4) or
    74 //        (((Pixel shr 4) and $f) shl 0);
    7570      Buffer[I] := (((Pixel shr 20) and $f) shl 0) or
    7671        (((Pixel shr 12) and $f) shl 4);
    7772      Inc(X, 2);
    78       //Buffer[I + 1] := (Pixel shr 8) and $ff;
    79       //Buffer[I + 2] := (Pixel shr 0) and $ff;
    8073      Inc(I, 1);
    8174      if I >= Length(Buffer) then Break;
  • trunk/ImageFile.lpi

    r1 r2  
    3838      </Unit0>
    3939      <Unit1>
    40         <Filename Value="UFormMain.pas"/>
     40        <Filename Value="FormMain.pas"/>
    4141        <IsPartOfProject Value="True"/>
    4242        <ComponentName Value="FormMain"/>
     
    5757    <Parsing>
    5858      <SyntaxOptions>
     59        <SyntaxMode Value="Delphi"/>
    5960        <IncludeAssertionCode Value="True"/>
    6061      </SyntaxOptions>
     
    7071    </CodeGeneration>
    7172    <Linking>
     73      <Debugging>
     74        <DebugInfoType Value="dsDwarf3"/>
     75      </Debugging>
    7276      <Options>
    7377        <Win32>
  • trunk/ImageFile.lpr

    r1 r2  
    11program ImageFile;
    2 
    3 {$mode objfpc}{$H+}
    42
    53uses
     
    86  {$ENDIF}{$ENDIF}
    97  Interfaces, // this includes the LCL widgetset
    10   Forms, UFormMain
     8  Forms, FormMain
    119  { you can add units after this };
    1210
     
    1715  Application.Scaled:=True;
    1816  Application.Initialize;
    19   Application.CreateForm(TFormMain, FormMain);
     17  Application.CreateForm(TFormMain, FormMain.FormMain);
    2018  Application.Run;
    2119end.
Note: See TracChangeset for help on using the changeset viewer.