Changeset 35 for trunk/Forms/UFormMain.pas
- Timestamp:
- May 4, 2018, 12:56:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r33 r35 135 135 StatusBar1.Panels[0].Text := '[' + IntToStr(Pos.X) + ', ' + IntToStr(Pos.Y) + '] Zoom:' + 136 136 FloatToStr(Core.Project.View.Zoom); 137 StatusBar1.Panels[1].Text := 'Src: ' + IntToStr(View.SrcRect.Right - View.SrcRect.Left) + ', ' + 137 StatusBar1.Panels[1].Text := 'Src: ' + IntToStr(View.SrcRect.Left) + ', ' + 138 IntToStr(View.SrcRect.Top) + ', ' + 139 IntToStr(View.SrcRect.Right - View.SrcRect.Left) + ', ' + 138 140 IntToStr(View.SrcRect.Bottom - View.SrcRect.Top); 139 StatusBar1.Panels[2].Text := 'Dst: ' + IntToStr(View.DestRect.Right - View.DestRect.Left) + ', ' + 141 StatusBar1.Panels[2].Text := 'Dst: ' + IntToStr(View.DestRect.Left) + ', ' + 142 IntToStr(View.DestRect.Top) + ', ' + 143 IntToStr(View.DestRect.Right - View.DestRect.Left) + ', ' + 140 144 IntToStr(View.DestRect.Bottom - View.DestRect.Top); 141 145 end; … … 150 154 begin 151 155 with Core.Project do begin 152 TempBitmap.SetSize(View.SrcRect.Right - View.SrcRect.Left, 153 View.SrcRect.Bottom - View.SrcRect.Top); 156 //TempBitmap.SetSize(View.SrcRect.Right - View.SrcRect.Left, 157 // View.SrcRect.Bottom - View.SrcRect.Top); 158 TempBitmap.SetSize(PaintBox1.Width, PaintBox1.Height); 154 159 //TempBitmap.BeginUpdate(True); 155 160 TempBitmap.Canvas.Brush.Color := clBlack; … … 158 163 // Bitmap.PaintToCanvas(TempBitmap.Canvas, View.SrcRect); 159 164 // if EnableDraw then 160 Bitmap.PaintToBitmap(TempBitmap, View.SrcRect); 165 Bitmap.PaintToBitmap(TempBitmap, View.SrcRect); 166 //StatusBar1.Panels[0].Text := IntToStr(TempBitmap.Width) + ', ' + IntToStr(TempBitmap.Height); 161 167 //TempBitmap.EndUpdate(False); 162 PaintBox1.Canvas. StretchDraw(View.DestRect, TempBitmap);168 PaintBox1.Canvas.Draw(0, 0, TempBitmap); 163 169 //PaintBox1.Canvas.Draw(0, 0, TempBitmap); 164 170 end;
Note:
See TracChangeset
for help on using the changeset viewer.