Changeset 2 for trunk/FormMain.pas
- Timestamp:
- Jun 18, 2024, 12:46:47 PM (2 weeks ago)
- Location:
- trunk
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:ignore
set to
lib
ImageFile.lps
ImageFile.res
ImageFile
-
Property svn:ignore
set to
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.