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/UFGraphics.pas

    r27 r29  
    4545    procedure PaintToBitmap(Bitmap: TBitmap; Rect: TRect); virtual;
    4646    procedure LoadFromCanvas(Canvas: TCanvas); virtual;
     47    procedure LoadFromBitmap(Bitmap: TBitmap); virtual;
    4748    function GetDataSize: Integer; virtual;
    4849    constructor Create; virtual;
     
    174175    procedure PaintToBitmap(Bitmap: TBitmap; Rect: TRect); overload;
    175176    procedure LoadFromCanvas(Canvas: TCanvas);
     177    procedure LoadFromBitmap(Bitmap: TBitmap);
    176178    function GetDataSize: Integer;
    177179    constructor Create(AOwner: TComponent); override;
     
    383385end;
    384386
     387procedure TBImage.LoadFromBitmap(Bitmap: TBitmap);
     388begin
     389end;
     390
    385391function TBImage.GetDataSize: Integer;
    386392begin
     
    495501begin
    496502  Backend.LoadFromCanvas(Canvas);
     503end;
     504
     505procedure TFPixmap.LoadFromBitmap(Bitmap: TBitmap);
     506begin
     507  Backend.LoadFromBitmap(Bitmap);
    497508end;
    498509
Note: See TracChangeset for help on using the changeset viewer.