Changeset 2 for trunk/FormMain.pas


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

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      lib
      ImageFile.lps
      ImageFile.res
      ImageFile
  • 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;
Note: See TracChangeset for help on using the changeset viewer.