Changeset 36 for trunk/UCore.pas


Ignore:
Timestamp:
May 4, 2018, 1:36:00 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Drawing using pen with connected lines instead of individual pixels.
  • Added: Negative image function for RGB8 format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r33 r36  
    234234procedure TCore.AFileSaveAsExecute(Sender: TObject);
    235235begin
    236   SavePictureDialog1.FileName := Project.FileName;
     236  SavePictureDialog1.InitialDir := ExtractFileDir(Project.FileName);
     237  SavePictureDialog1.FileName := ExtractFileName(Project.FileName);
    237238  if SavePictureDialog1.Execute then begin
    238239    Project.FileName := SavePictureDialog1.FileName;
     
    251252    Image := TImage.Create(nil);
    252253    Image.Picture.Bitmap.SetSize(Project.Bitmap.Size.X, Project.Bitmap.Size.Y);
    253     Project.Bitmap.PaintToCanvas(Image.Picture.Bitmap.Canvas,
     254    Project.Bitmap.PaintToBitmap(Image.Picture.Bitmap,
    254255      Rect(0, 0, Image.Picture.Bitmap.Width, Image.Picture.Bitmap.Height));
    255256    Image.Picture.SaveToFile(SavePictureDialog1.FileName);
Note: See TracChangeset for help on using the changeset viewer.