Changeset 27 for trunk/Packages/FastGraphics/ColorFormats
- Timestamp:
- Dec 22, 2016, 5:35:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/FastGraphics/ColorFormats/UColorRGB8.pas
r26 r27 54 54 procedure PaintToCanvas(Canvas: TCanvas); override; 55 55 procedure PaintToCanvas(Canvas: TCanvas; Rect: TRect); override; 56 procedure PaintToBitmap(Bitmap: TBitmap; Rect: TRect); override; 56 57 procedure LoadFromCanvas(Canvas: TCanvas); override; 57 58 function GetDataSize: Integer; override; … … 91 92 function TPixmapRGB8.RGB8ToColor(Value: TColorRGB8): TColor; 92 93 begin 93 Result := (Value. R shl 16) or (Value.G shl 8) or (Value.Bshl 0);94 Result := (Value.B shl 16) or (Value.G shl 8) or (Value.R shl 0); 94 95 end; 95 96 … … 159 160 end; 160 161 162 procedure TBPixmapRGB8.PaintToBitmap(Bitmap: TBitmap; Rect: TRect); 163 begin 164 Pixmap.PaintToBitmap(Bitmap, Rect, Pixmap.RGB8ToColor); 165 end; 166 161 167 procedure TBPixmapRGB8.LoadFromCanvas(Canvas: TCanvas); 162 168 begin
Note:
See TracChangeset
for help on using the changeset viewer.