Changeset 27 for trunk/Forms/UFormMain.pas
- Timestamp:
- Dec 22, 2016, 5:35:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r16 r27 64 64 MousePos: TPoint; 65 65 Activated: Boolean; 66 public 66 67 procedure EraseBackground(DC: HDC); override; 67 public68 68 procedure UpdateStatusBar; 69 69 procedure Redraw; … … 120 120 TempBitmap.SetSize(View.SrcRect.Right - View.SrcRect.Left, 121 121 View.SrcRect.Bottom - View.SrcRect.Top); 122 TempBitmap.BeginUpdate(True);122 //TempBitmap.BeginUpdate(True); 123 123 TempBitmap.Canvas.Brush.Color := clBlack; 124 124 TempBitmap.Canvas.FillRect(0, 0, TempBitmap.Width, TempBitmap.Height); 125 125 View.DestRect := Bounds(0, 0, PaintBox1.Width, PaintBox1.Height); 126 Bitmap.PaintToCanvas(TempBitmap.Canvas, View.SrcRect); 127 TempBitmap.EndUpdate(False); 126 //Bitmap.PaintToCanvas(TempBitmap.Canvas, View.SrcRect); 127 Bitmap.PaintToBitmap(TempBitmap, View.SrcRect); 128 //TempBitmap.EndUpdate(False); 128 129 PaintBox1.Canvas.StretchDraw(View.DestRect, TempBitmap); 129 130 //PaintBox1.Canvas.Draw(0, 0, TempBitmap);
Note:
See TracChangeset
for help on using the changeset viewer.