Changeset 347 for trunk/Packages/CevoComponents/UPixelPointer.pas
- Timestamp:
- Apr 6, 2021, 7:39:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/UPixelPointer.pas
r331 r347 46 46 function PixelPointer(Bitmap: TRasterImage; BaseX: Integer = 0; BaseY: Integer = 0): TPixelPointer; inline; 47 47 function SwapRedBlue(Color: TColor32): TColor32; 48 function Color32ToColor(Color: TColor32): TColor; 49 function ColorToColor32(Color: TColor): TColor32; 48 50 49 51 implementation … … 113 115 end; 114 116 117 function Color32ToColor(Color: TColor32): TColor; 118 begin 119 Result := ((Color shr 16) and $ff) or (Color and $00ff00) or 120 ((Color and $ff) shl 16); 121 end; 122 123 function ColorToColor32(Color: TColor): TColor32; 124 begin 125 Result := $ff000000 or ((Color shr 16) and $ff) or (Color and $00ff00) or 126 ((Color and $ff) shl 16); 127 end; 115 128 116 129 end.
Note:
See TracChangeset
for help on using the changeset viewer.