Changeset 230 for trunk/Packages/CevoComponents/ScreenTools.pas
- Timestamp:
- May 14, 2020, 10:39:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r225 r230 911 911 begin 912 912 dst.BeginUpdate; 913 DstPtr := PixelPointer(dst, x0 , y0);913 DstPtr := PixelPointer(dst, x0 - GlowRange + 1, y0 - GlowRange + 1); 914 914 for y := -GlowRange + 1 to Height - 1 + GlowRange - 1 do begin 915 915 for x := -GlowRange + 1 to Width - 1 + GlowRange - 1 do begin 916 DstPtr.SetXY(x, y);917 916 if x < 0 then 918 917 if y < 0 then … … 933 932 else if y >= Height then 934 933 r := y - (Height - 1) 935 else 934 else begin 935 DstPtr.NextPixel; 936 936 continue; 937 end; 937 938 if r = 0 then 938 939 r := 1; … … 942 943 (DstPtr.Pixel^.Planes[2 - ch] * (r - 1) + (cl shr (8 * ch) and $FF) * 943 944 (GlowRange - r)) div (GlowRange - 1); 944 end; 945 DstPtr.NextPixel; 946 end; 947 DstPtr.NextLine; 945 948 end; 946 949 dst.EndUpdate;
Note:
See TracChangeset
for help on using the changeset viewer.