Changeset 21 for branches/gbitmap/UFormMain.pas
- Timestamp:
- Dec 22, 2016, 1:01:41 PM (8 years ago)
- Location:
- branches/gbitmap
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gbitmap
- Property svn:ignore
-
old new 4 4 project1.res 5 5 project1.exe 6 heaptrclog.trc
-
- Property svn:ignore
-
branches/gbitmap/UFormMain.pas
r20 r21 7 7 uses 8 8 GImage, Classes, SysUtils, FileUtil, Forms, Graphics, Controls, Dialogs, Menus, 9 ExtCtrls, StdCtrls, GPixmap, UPixmapSpecialized; 9 ExtCtrls, StdCtrls, GPixmap, UPixmapSpecialized, UColorGray1, UColorGray2, 10 UColorGray4, UColorGray8, UColorRGB8, UColorRGBA8, UColorRGB565; 10 11 11 12 type … … 275 276 with Image do begin 276 277 Size := Point(100, 100); 277 ColorFormat := cfGray2;278 ColorFormat := ColorFormatManager.Formats[1]; 278 279 Fill(GImage.TColor.Create(ColorFormat, cnWhite)); 279 280 Pixels[0, 0] := GImage.TColor.Create(ColorFormat, cnBlack); … … 287 288 procedure TForm1.FormShow(Sender: TObject); 288 289 begin 290 with ColorFormatManager do begin 291 RegisterFormat(TColorFormatGray1); 292 RegisterFormat(TColorFormatGray2); 293 RegisterFormat(TColorFormatGray4); 294 RegisterFormat(TColorFormatGray8); 295 RegisterFormat(TColorFormatRGB8); 296 RegisterFormat(TColorFormatRGBA8); 297 RegisterFormat(TColorFormatRGB565); 298 end; 289 299 ListBox1.ItemIndex := 0; 290 300 end;
Note:
See TracChangeset
for help on using the changeset viewer.