Changeset 36 for trunk/UCore.pas
- Timestamp:
- May 4, 2018, 1:36:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r33 r36 234 234 procedure TCore.AFileSaveAsExecute(Sender: TObject); 235 235 begin 236 SavePictureDialog1.FileName := Project.FileName; 236 SavePictureDialog1.InitialDir := ExtractFileDir(Project.FileName); 237 SavePictureDialog1.FileName := ExtractFileName(Project.FileName); 237 238 if SavePictureDialog1.Execute then begin 238 239 Project.FileName := SavePictureDialog1.FileName; … … 251 252 Image := TImage.Create(nil); 252 253 Image.Picture.Bitmap.SetSize(Project.Bitmap.Size.X, Project.Bitmap.Size.Y); 253 Project.Bitmap.PaintTo Canvas(Image.Picture.Bitmap.Canvas,254 Project.Bitmap.PaintToBitmap(Image.Picture.Bitmap, 254 255 Rect(0, 0, Image.Picture.Bitmap.Width, Image.Picture.Bitmap.Height)); 255 256 Image.Picture.SaveToFile(SavePictureDialog1.FileName);
Note:
See TracChangeset
for help on using the changeset viewer.