Changeset 506 for trunk/Packages/DpiControls/Dpi.Graphics.pas
- Timestamp:
- Dec 25, 2023, 11:35:51 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/DpiControls/Dpi.Graphics.pas
r487 r506 706 706 SrcPtr.SetXY(Min(ScaleFromNative(xx), Src.Width - 1), 707 707 Min(ScaleFromNative(yy), Src.Height - 1)); 708 DstPtr.Pixel ^.B := SrcPtr.Pixel^.B;709 DstPtr.Pixel ^.G := SrcPtr.Pixel^.G;710 DstPtr.Pixel ^.R := SrcPtr.Pixel^.R;708 DstPtr.PixelB := SrcPtr.PixelB; 709 DstPtr.PixelG := SrcPtr.PixelG; 710 DstPtr.PixelR := SrcPtr.PixelR; 711 711 DstPtr.NextPixel; 712 712 end; … … 720 720 DstWidth := ScaleToNative(SrcX + 1) - ScaleToNative(SrcX); 721 721 for DstX := 0 to DstWidth - 1 do begin 722 DstPtr.Pixel ^.B := SrcPtr.Pixel^.B;723 DstPtr.Pixel ^.G := SrcPtr.Pixel^.G;724 DstPtr.Pixel ^.R := SrcPtr.Pixel^.R;722 DstPtr.PixelB := SrcPtr.PixelB; 723 DstPtr.PixelG := SrcPtr.PixelG; 724 DstPtr.PixelR := SrcPtr.PixelR; 725 725 DstPtr.NextPixel; 726 726 end;
Note:
See TracChangeset
for help on using the changeset viewer.