Changeset 506 for trunk/MiniMap.pas
- Timestamp:
- Dec 25, 2023, 11:35:51 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MiniMap.pas
r504 r506 188 188 if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and 189 189 (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * MiniPixel.BytesPerLine)) then begin 190 MiniPixel.Pixel ^.B := ((cm shr 16) and $FF) * Brightness div 3;191 MiniPixel.Pixel ^.G := ((cm shr 8) and $FF) * Brightness div 3;192 MiniPixel.Pixel ^.R := ((cm shr 0) and $FF) * Brightness div 3;190 MiniPixel.PixelB := ((cm shr 16) and $FF) * Brightness div 3; 191 MiniPixel.PixelG := ((cm shr 8) and $FF) * Brightness div 3; 192 MiniPixel.PixelR := ((cm shr 0) and $FF) * Brightness div 3; 193 193 end; 194 194 end; … … 232 232 if (PByte(PrevMiniPixel.Pixel) >= Bitmap.RawImage.Data) and 233 233 (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * PrevMiniPixel.BytesPerLine)) then begin 234 PrevMiniPixel.Pixel ^.B := cm shr 16;235 PrevMiniPixel.Pixel ^.G:= cm shr 8 and $FF;236 PrevMiniPixel.Pixel ^.R := cm and $FF;234 PrevMiniPixel.PixelB := cm shr 16; 235 PrevMiniPixel.PixelG:= cm shr 8 and $FF; 236 PrevMiniPixel.PixelR := cm and $FF; 237 237 end; 238 238 end; … … 245 245 if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and 246 246 (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * MiniPixel.BytesPerLine)) then begin 247 MiniPixel.Pixel ^.B := (cm shr 16) and $ff;248 MiniPixel.Pixel ^.G := (cm shr 8) and $ff;249 MiniPixel.Pixel ^.R := (cm shr 0) and $ff;247 MiniPixel.PixelB := (cm shr 16) and $ff; 248 MiniPixel.PixelG := (cm shr 8) and $ff; 249 MiniPixel.PixelR := (cm shr 0) and $ff; 250 250 end; 251 251 end; … … 317 317 if (PByte(PrevMiniPixel.Pixel) >= Bitmap.RawImage.Data) and 318 318 (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * PrevMiniPixel.BytesPerLine)) then begin 319 PrevMiniPixel.Pixel ^.B := (cm shr 16) and $ff;320 PrevMiniPixel.Pixel ^.G := (cm shr 8) and $ff;321 PrevMiniPixel.Pixel ^.R := (cm shr 0) and $ff;319 PrevMiniPixel.PixelB := (cm shr 16) and $ff; 320 PrevMiniPixel.PixelG := (cm shr 8) and $ff; 321 PrevMiniPixel.PixelR := (cm shr 0) and $ff; 322 322 end; 323 323 end; … … 342 342 if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and 343 343 (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * MiniPixel.BytesPerLine)) then begin 344 MiniPixel.Pixel ^.B := (cm shr 16) and $ff;345 MiniPixel.Pixel ^.G := (cm shr 8) and $ff;346 MiniPixel.Pixel ^.R := (cm shr 0) and $ff;344 MiniPixel.PixelB := (cm shr 16) and $ff; 345 MiniPixel.PixelG := (cm shr 8) and $ff; 346 MiniPixel.PixelR := (cm shr 0) and $ff; 347 347 end; 348 348 end;
Note:
See TracChangeset
for help on using the changeset viewer.