Ignore:
Timestamp:
Dec 22, 2016, 9:46:17 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Load image data from file quickly using Bitmap RawImage.
  • Modified: Remember last selected color format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/FastGraphics/ColorFormats/UColorRGB8.pas

    r28 r29  
    5656    procedure PaintToBitmap(Bitmap: TBitmap; Rect: TRect); override;
    5757    procedure LoadFromCanvas(Canvas: TCanvas); override;
     58    procedure LoadFromBitmap(Bitmap: TBitmap); override;
    5859    function GetDataSize: Integer; override;
    5960    constructor Create; override;
     
    170171end;
    171172
     173procedure TBPixmapRGB8.LoadFromBitmap(Bitmap: TBitmap);
     174begin
     175  Pixmap.LoadFromBitmap(Bitmap, Pixmap.ColorToRGB8);
     176end;
     177
    172178function TBPixmapRGB8.GetDataSize: Integer;
    173179begin
Note: See TracChangeset for help on using the changeset viewer.