Ignore:
Timestamp:
Dec 22, 2016, 5:35:25 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Use faster drawing to TBitmap RawImage.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/FastGraphics/UFGraphics.pas

    r26 r27  
    4343    procedure PaintToCanvas(Canvas: TCanvas); virtual; overload;
    4444    procedure PaintToCanvas(Canvas: TCanvas; Rect: TRect); virtual; overload;
     45    procedure PaintToBitmap(Bitmap: TBitmap; Rect: TRect); virtual;
    4546    procedure LoadFromCanvas(Canvas: TCanvas); virtual;
    4647    function GetDataSize: Integer; virtual;
     
    171172    procedure PaintToCanvas(Canvas: TCanvas); overload;
    172173    procedure PaintToCanvas(Canvas: TCanvas; Rect: TRect); overload;
     174    procedure PaintToBitmap(Bitmap: TBitmap; Rect: TRect); overload;
    173175    procedure LoadFromCanvas(Canvas: TCanvas);
    174176    function GetDataSize: Integer;
     
    373375end;
    374376
     377procedure TBImage.PaintToBitmap(Bitmap: TBitmap; Rect: TRect);
     378begin
     379end;
     380
    375381procedure TBImage.LoadFromCanvas(Canvas: TCanvas);
    376382begin
     
    479485begin
    480486  FBackend.PaintToCanvas(Canvas, Rect);
     487end;
     488
     489procedure TFPixmap.PaintToBitmap(Bitmap: TBitmap; Rect: TRect);
     490begin
     491  FBackend.PaintToBitmap(Bitmap, Rect);
    481492end;
    482493
Note: See TracChangeset for help on using the changeset viewer.