Changeset 23 for branches/gbitmap/UFormMain.pas
- Timestamp:
- Dec 22, 2016, 1:20:06 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gbitmap/UFormMain.pas
r22 r23 6 6 7 7 uses 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, 10 10 UColorGray4, UColorGray8, UColorRGB8, UColorRGBA8, UColorRGB565; 11 11 … … 29 29 function RGB8Random(Position: TPoint): TColorRGB8; 30 30 function RGB16Random(Position: TPoint): TColorRGB16; 31 function ColorRandom(Position: TPoint; ColorFormat: TColorFormat): GImage.TColor;31 function ColorRandom(Position: TPoint; ColorFormat: TColorFormat): UFGraphics.TFColor; 32 32 public 33 33 procedure TestGray1; … … 98 98 end; 99 99 100 function TForm1.ColorRandom(Position: TPoint; ColorFormat: TColorFormat): GImage.TColor;101 begin 102 Result := GImage.TColor.Create;100 function TForm1.ColorRandom(Position: TPoint; ColorFormat: TColorFormat): UFGraphics.TFColor; 101 begin 102 Result := UFGraphics.TFColor.Create; 103 103 Result.ColorFormat := ColorFormat; 104 104 Result.SetRandom; … … 271 271 procedure TForm1.TestImage; 272 272 var 273 Image: GImage.TPixmap;274 begin 275 Image := GImage.TPixmap.Create;273 Image: TFPixmap; 274 begin 275 Image := TFPixmap.Create; 276 276 with Image do begin 277 277 Size := Point(100, 100); 278 278 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); 281 281 Fill(ColorRandom); 282 282 PaintToCanvas(Image1.Picture.Bitmap.Canvas);
Note:
See TracChangeset
for help on using the changeset viewer.