- Timestamp:
- May 22, 2020, 11:52:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/UPixelPointer.pas
r249 r251 9 9 TColor32 = type Cardinal; 10 10 TColor32Component = (ccBlue, ccGreen, ccRed, ccAlpha); 11 12 { TPixel32 } 13 11 14 TPixel32 = packed record 15 procedure SetRGB(Color: TColor32); 16 function GetRGB: TColor32; 12 17 case Integer of 13 18 0: (B, G, R, A: Byte); … … 42 47 43 48 implementation 49 50 { TPixel32 } 51 52 procedure TPixel32.SetRGB(Color: TColor32); 53 begin 54 B := Color and $ff; 55 G := (Color shr 8) and $ff; 56 R := (Color shr 16) and $ff; 57 end; 58 59 function TPixel32.GetRGB: TColor32; 60 begin 61 Result := ARGB and $ffffff; 62 end; 44 63 45 64 { TPixelPointer }
Note:
See TracChangeset
for help on using the changeset viewer.