Ignore:
Timestamp:
Dec 22, 2016, 1:20:06 PM (8 years ago)
Author:
chronos
Message:

Generic classes unit renamed to UGGraphics and non generic component like class renamed to UFGraphics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gbitmap/UFormMain.pas

    r22 r23  
    66
    77uses
    8   GImage, Classes, SysUtils, FileUtil, Forms, Graphics, Controls, Dialogs, Menus,
    9   ExtCtrls, StdCtrls, GPixmap, UPixmapSpecialized, UColorGray1, UColorGray2,
     8  UFGraphics, Classes, SysUtils, FileUtil, Forms, Graphics, Controls, Dialogs, Menus,
     9  ExtCtrls, StdCtrls, UGGraphics, UPixmapSpecialized, UColorGray1, UColorGray2,
    1010  UColorGray4, UColorGray8, UColorRGB8, UColorRGBA8, UColorRGB565;
    1111
     
    2929    function RGB8Random(Position: TPoint): TColorRGB8;
    3030    function RGB16Random(Position: TPoint): TColorRGB16;
    31     function ColorRandom(Position: TPoint; ColorFormat: TColorFormat): GImage.TColor;
     31    function ColorRandom(Position: TPoint; ColorFormat: TColorFormat): UFGraphics.TFColor;
    3232  public
    3333    procedure TestGray1;
     
    9898end;
    9999
    100 function TForm1.ColorRandom(Position: TPoint; ColorFormat: TColorFormat): GImage.TColor;
    101 begin
    102   Result := GImage.TColor.Create;
     100function TForm1.ColorRandom(Position: TPoint; ColorFormat: TColorFormat): UFGraphics.TFColor;
     101begin
     102  Result := UFGraphics.TFColor.Create;
    103103  Result.ColorFormat := ColorFormat;
    104104  Result.SetRandom;
     
    271271procedure TForm1.TestImage;
    272272var
    273   Image: GImage.TPixmap;
    274 begin
    275   Image := GImage.TPixmap.Create;
     273  Image: TFPixmap;
     274begin
     275  Image := TFPixmap.Create;
    276276  with Image do begin
    277277    Size := Point(100, 100);
    278278    ColorFormat := ColorFormatManager.Formats[5];
    279     Fill(GImage.TColor.Create(ColorFormat, cnWhite));
    280     Pixels[0, 0] := GImage.TColor.Create(ColorFormat, cnBlack);
     279    Fill(TFColor.Create(ColorFormat, cnWhite));
     280    Pixels[0, 0] := TFColor.Create(ColorFormat, cnBlack);
    281281    Fill(ColorRandom);
    282282    PaintToCanvas(Image1.Picture.Bitmap.Canvas);
Note: See TracChangeset for help on using the changeset viewer.