Changeset 4 for trunk/UCore.pas


Ignore:
Timestamp:
Sep 16, 2014, 11:55:35 AM (10 years ago)
Author:
chronos
Message:
  • Added: Action to fill image with random image.
  • Fixed: Pixel load/save to bitmap was using Move with pointers instead pointed value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r3 r4  
    1313
    1414  TCore = class(TDataModule)
     15    AImageRandom: TAction;
    1516    AImageClear: TAction;
    1617    AExit: TAction;
     
    1920    procedure AExitExecute(Sender: TObject);
    2021    procedure AImageClearExecute(Sender: TObject);
     22    procedure AImageRandomExecute(Sender: TObject);
    2123    procedure AProjectNewExecute(Sender: TObject);
    2224    procedure DataModuleCreate(Sender: TObject);
     
    7577end;
    7678
     79procedure TCore.AImageRandomExecute(Sender: TObject);
     80begin
     81  Project.Bitmap.Random;
     82  FormMain.Redraw;
     83end;
     84
    7785end.
    7886
Note: See TracChangeset for help on using the changeset viewer.