Changeset 507 for trunk/Packages/DpiControls
- Timestamp:
- Dec 25, 2023, 12:01:22 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/DpiControls/Dpi.PixelPointer.pas
r506 r507 148 148 {$IFOPT R+} 149 149 var 150 B: Integer; 150 151 X: Integer; 151 152 Y: Integer; … … 155 156 if (PByte(Pixel) < PByte(Data)) or 156 157 (PByte(Pixel) >= PByte(Data) + Height * BytesPerLine) then begin 157 X:= PByte(Pixel) - PByte(Data);158 Y := Floor( X/ BytesPerLine);159 X := X- Y * BytesPerLine;158 B := PByte(Pixel) - PByte(Data); 159 Y := Floor(B / BytesPerLine); 160 X := B - Y * BytesPerLine; 160 161 X := Floor(X / BytesPerPixel); 161 162 raise Exception.Create(Format(SOutOfRange, [X, Y]));
Note:
See TracChangeset
for help on using the changeset viewer.