mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Hooked up rotation and opacity
This commit is contained in:
1 parent
f071871695
commit
4e9ece621f
9 files changed
+202
-137
No files matched your search
@@ -83,7 +83,6 @@ namespace Artemis.UI.Screens.Module.ProfileEditor.Visualization
|
||||
}
|
||||
|
||||
var layerGeometry = group.GetOutlinedPathGeometry();
|
||||
|
||||
var opacityGeometry = Geometry.Combine(Geometry.Empty, layerGeometry, GeometryCombineMode.Exclude, new TranslateTransform());
|
||||
layerGeometry.Freeze();
|
||||
opacityGeometry.Freeze();
|
||||
@@ -120,6 +119,10 @@ namespace Artemis.UI.Screens.Module.ProfileEditor.Visualization
|
||||
break;
|
||||
}
|
||||
|
||||
// Apply transformation like done by the core during layer rendering
|
||||
var anchor = Layer.LayerShape.GetUnscaledAnchor();
|
||||
shapeGeometry.Transform = new RotateTransform(Layer.RotationProperty.CurrentValue, anchor.X, anchor.Y);
|
||||
|
||||
shapeGeometry.Freeze();
|
||||
ShapeGeometry = shapeGeometry;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user