Added round rectangle, cicle and triangle.
Applied Antialias on most of elements.
This commit is contained in:
@@ -74,7 +74,6 @@ namespace Progrart.Core.Graphics
|
||||
LoadProperties();
|
||||
SKPoint FinalStartPos = context.TranslatePoint(Start);
|
||||
SKPoint FinalEndPos = context.TranslatePoint(Size);
|
||||
Trace.WriteLine($"Draw Rectangle from {FinalStartPos} to {FinalEndPos} using {Color} with size of {StrokeWidth}.");
|
||||
context.DrawingCore.canvas.DrawRect(
|
||||
FinalStartPos.X, FinalStartPos.Y,
|
||||
FinalEndPos.X, FinalEndPos.Y,
|
||||
@@ -83,7 +82,8 @@ namespace Progrart.Core.Graphics
|
||||
ColorF = Color,
|
||||
StrokeWidth = context.TranslateSize(StrokeWidth),
|
||||
Shader = shader,
|
||||
IsStroke = true
|
||||
IsStroke = IsStroke,
|
||||
IsAntialias = true
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user