|
@@ -20,18 +20,19 @@ public class PointsVectorData : ShapeVectorData
|
|
|
public override ShapeCorners TransformationCorners => new ShapeCorners(
|
|
|
GeometryAABB).WithMatrix(TransformationMatrix);
|
|
|
|
|
|
- public override void RasterizeGeometry(DrawingSurface drawingSurface, ChunkResolution resolution, Paint? paint)
|
|
|
+ public override void RasterizeGeometry(DrawingSurface drawingSurface)
|
|
|
{
|
|
|
- Rasterize(drawingSurface, paint, resolution, false);
|
|
|
+ Rasterize(drawingSurface, false);
|
|
|
}
|
|
|
|
|
|
- public override void RasterizeTransformed(DrawingSurface drawingSurface, ChunkResolution resolution, Paint paint)
|
|
|
+ public override void RasterizeTransformed(DrawingSurface drawingSurface)
|
|
|
{
|
|
|
- Rasterize(drawingSurface, paint, resolution, true);
|
|
|
+ Rasterize(drawingSurface, true);
|
|
|
}
|
|
|
|
|
|
- private void Rasterize(DrawingSurface drawingSurface, Paint paint, ChunkResolution resolution, bool applyTransform)
|
|
|
+ private void Rasterize(DrawingSurface drawingSurface, bool applyTransform)
|
|
|
{
|
|
|
+ using Paint paint = new Paint();
|
|
|
paint.Color = FillColor;
|
|
|
paint.StrokeWidth = StrokeWidth;
|
|
|
|
|
@@ -39,11 +40,7 @@ public class PointsVectorData : ShapeVectorData
|
|
|
if (applyTransform)
|
|
|
{
|
|
|
num = drawingSurface.Canvas.Save();
|
|
|
- Matrix3X3 final = TransformationMatrix with
|
|
|
- {
|
|
|
- TransX = TransformationMatrix.TransX * (float)resolution.Multiplier(),
|
|
|
- TransY = TransformationMatrix.TransY * (float)resolution.Multiplier()
|
|
|
- };
|
|
|
+ Matrix3X3 final = TransformationMatrix;
|
|
|
drawingSurface.Canvas.SetMatrix(final);
|
|
|
}
|
|
|
|