Changeset 5 for trunk/UCore.pas


Ignore:
Timestamp:
Sep 16, 2014, 1:21:18 PM (10 years ago)
Author:
chronos
Message:
  • Added: 8-bit grayscale color format for testing.
  • Added: Canvas, Pen, Brush, line draw test code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r4 r5  
    3737
    3838uses
    39   UFormNew, UFormMain, UColorRGBA8, Forms;
     39  UFormNew, UFormMain, Forms, UColorRGBA8, UColorGray8;
    4040
    4141{ TCore }
     
    4646
    4747  ColorManager.RegisterFormat(TGColorFormatRGBA8);
     48  ColorManager.RegisterFormat(TGColorFormatGray8);
    4849
    4950  // Set default
     
    7475begin
    7576  Project.Bitmap.Clear;
     77  Project.Bitmap.Canvas.Pen.Color.Format := Project.Bitmap.ColorFormat;
     78  Project.Bitmap.Canvas.Pen.Color.FromTColor(clWhite);
     79  Project.Bitmap.Canvas.Pen.MoveTo(Point(100, 100));
     80  Project.Bitmap.Canvas.Pen.LineTo(Point(700, 500));
    7681  FormMain.Redraw;
    7782end;
Note: See TracChangeset for help on using the changeset viewer.