Changeset 31 for trunk/Packages/FastGraphics/UFGraphics.pas
- Timestamp:
- Jan 4, 2017, 11:49:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/FastGraphics/UFGraphics.pas
r29 r31 13 13 IBColor = interface 14 14 procedure SetColorName(ColorName: TColorName); 15 procedure SetColor(Color: TColor); 15 16 procedure SetRandom; 16 17 end; … … 20 21 TBColor = class(TInterfacedObject, IBColor) 21 22 procedure SetColorName(ColorName: TColorName); virtual; 23 procedure SetColor(Color: TColor); virtual; 22 24 procedure SetRandom; virtual; 23 25 end; … … 38 40 procedure SetSize(AValue: TPoint); virtual; 39 41 public 42 procedure Mirror; virtual; 43 procedure Flip; virtual; 40 44 procedure Fill(Color: IBColor); virtual; overload; 41 45 procedure Fill(Func: TGetColorPos); virtual; overload; … … 110 114 constructor Create; overload; 111 115 constructor Create(ColorFormat: TColorFormat; ColorName: TColorName); overload; 116 constructor Create(ColorFormat: TColorFormat; Color: TColor); overload; 112 117 destructor Destroy; override; 113 118 end; … … 239 244 end; 240 245 246 procedure TBColor.SetColor(Color: TColor); 247 begin 248 end; 249 241 250 procedure TBColor.SetRandom; 242 251 begin … … 334 343 end; 335 344 345 constructor TFColor.Create(ColorFormat: TColorFormat; Color: TColor); 346 begin 347 Self.ColorFormat := ColorFormat; 348 Backend.SetColor(Color); 349 end; 350 336 351 destructor TFColor.Destroy; 337 352 begin … … 355 370 if (FSize.X = AValue.X) and (FSize.Y = AValue.Y) then Exit; 356 371 FSize := AValue; 372 end; 373 374 procedure TBImage.Mirror; 375 begin 376 377 end; 378 379 procedure TBImage.Flip; 380 begin 357 381 end; 358 382 … … 449 473 procedure TFPixmap.Flip; 450 474 begin 451 475 FBackend.Flip; 452 476 end; 453 477 454 478 procedure TFPixmap.Mirror; 455 479 begin 456 480 FBackend.Mirror; 457 481 end; 458 482
Note:
See TracChangeset
for help on using the changeset viewer.