Changeset 36 for trunk/Forms/UFormMain.pas
- Timestamp:
- May 4, 2018, 1:36:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r35 r36 223 223 P := Core.Project.View.DestToSrcPos(Point(X, Y)); 224 224 if (P.X >= 0) and (P.X < Core.Project.Bitmap.Size.X) and (P.Y >= 0) and (P.Y < Core.Project.Bitmap.Size.Y) then 225 Core.Project.Bitmap. Pixels[P.X, P.Y] := TFColor.Create(Core.Project.Bitmap.ColorFormat, ColorButton1.ButtonColor);225 Core.Project.Bitmap.Canvas.Pen.MoveTo(Point(P.X, P.Y)); 226 226 Redraw; 227 227 end; … … 253 253 if ImageTool = itPen then begin 254 254 P := Core.Project.View.DestToSrcPos(Point(X, Y)); 255 if (P.X >= 0) and (P.X < Core.Project.Bitmap.Size.X) and (P.Y >= 0) and (P.Y < Core.Project.Bitmap.Size.Y) then 256 Core.Project.Bitmap.Pixels[P.X, P.Y] := TFColor.Create(Core.Project.Bitmap.ColorFormat, ColorButton1.ButtonColor); 255 if (P.X >= 0) and (P.X < Core.Project.Bitmap.Size.X) and (P.Y >= 0) and (P.Y < Core.Project.Bitmap.Size.Y) then begin 256 Core.Project.Bitmap.Canvas.Pen.Color := TFColor.Create(Core.Project.Bitmap.ColorFormat, ColorButton1.ButtonColor); 257 Core.Project.Bitmap.Canvas.Pen.LineTo(Point(P.X, P.Y)); 258 end; 257 259 Redraw; 258 260 end;
Note:
See TracChangeset
for help on using the changeset viewer.