Changeset 27 for trunk/UCore.pas


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

    r26 r27  
    207207begin
    208208  Project.Bitmap.Clear;
    209   TFColor(Project.Bitmap.Canvas.Pen.Color).ColorFormat := Project.Bitmap.ColorFormat;
    210   TFColor(Project.Bitmap.Canvas.Pen.Color).SetColorName(cnWhite);
     209  (Project.Bitmap.Canvas.Pen.Color as TFColor).ColorFormat := Project.Bitmap.ColorFormat;
     210  (Project.Bitmap.Canvas.Pen.Color as TFColor).SetColorName(cnWhite);
    211211  Project.Bitmap.Canvas.Pen.MoveTo(Point(80, 80));
    212212  Project.Bitmap.Canvas.Pen.LineTo(Point(50, 20));
Note: See TracChangeset for help on using the changeset viewer.