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/ColorFormats/UColorRGB8.pas

    r22 r23  
    66
    77uses
    8   Classes, SysUtils, GPixmap, GImage, Graphics;
     8  Classes, SysUtils, UGGraphics, UFGraphics, Graphics;
    99
    1010type
     
    3737  end;
    3838
    39   { TBImageRGB8 }
     39  { TBPixmapRGB8 }
    4040
    41   TBImageRGB8 = class(TBImage)
     41  TBPixmapRGB8 = class(TBImage)
    4242  private
    4343    FillCallBack: TGetColorPos;
     
    6666  BitDepth := 24;
    6767  Name := 'RGB8';
    68   BackendImageClass := TBImageRGB8;
     68  BackendImageClass := TBPixmapRGB8;
    6969  BackendColorClass := TBColorRGB8;
    7070  AddChannel('Red', 0, 8);
     
    112112end;
    113113
    114 { TBImageRGB8 }
     114{ TBPixmapRGB8 }
    115115
    116 function TBImageRGB8.FillGetColor(Position: TPoint): TColorRGB8;
     116function TBPixmapRGB8.FillGetColor(Position: TPoint): TColorRGB8;
    117117begin
    118118  Result := (FillCallBack(Position) as TBColorRGB8).Value;
    119119end;
    120120
    121 procedure TBImageRGB8.SetSize(AValue: TPoint);
     121procedure TBPixmapRGB8.SetSize(AValue: TPoint);
    122122begin
    123123  inherited;
     
    125125end;
    126126
    127 procedure TBImageRGB8.Fill(Color: IBColor);
     127procedure TBPixmapRGB8.Fill(Color: IBColor);
    128128begin
    129129  if Color is TBColorRGB8 then
     
    131131end;
    132132
    133 procedure TBImageRGB8.Fill(Func: TGetColorPos);
     133procedure TBPixmapRGB8.Fill(Func: TGetColorPos);
    134134begin
    135135  FillCallBack := Func;
     
    137137end;
    138138
    139 procedure TBImageRGB8.PaintToCanvas(Canvas: TCanvas);
     139procedure TBPixmapRGB8.PaintToCanvas(Canvas: TCanvas);
    140140begin
    141141  Pixmap.PaintToCanvas(Canvas, Pixmap.RGB8ToColor);
    142142end;
    143143
    144 function TBImageRGB8.GetDataSize: Integer;
     144function TBPixmapRGB8.GetDataSize: Integer;
    145145begin
    146146  Result := Pixmap.GetDataSize;
    147147end;
    148148
    149 constructor TBImageRGB8.Create;
     149constructor TBPixmapRGB8.Create;
    150150begin
    151151  Pixmap := TPixmapRGB8.Create;
    152152end;
    153153
    154 destructor TBImageRGB8.Destroy;
     154destructor TBPixmapRGB8.Destroy;
    155155begin
    156156  FreeAndNil(Pixmap);
Note: See TracChangeset for help on using the changeset viewer.