using System.Windows.Media.Imaging; namespace QuikDawEditor.EditingClasses; public class ClipUnitBackground { //DUMMY CLASS FOR ITEMSCONTROL //public CombinedGeometry cGeom { get; set; } //Pen linePenMeasure = new Pen(Brushes.White, 0.4); //public ClipUnitBackground(CombinedGeometry cgeom) { cGeom = cgeom; } //GeometryDrawing drawing; //protected override void OnRender(DrawingContext dc) //{ // base.OnRender(dc); // dc.DrawGeometry(Brushes.Green, linePenMeasure, cGeom); // //dc.DrawDrawing(drawing); //} public ClipUnitBackground() { } ////needed for reverse //public TransformGroup ClipBackgroundTransform //{ // get // { // TransformGroup tgroup = new TransformGroup(); // if (cType == ClipType.Midi) // { // tgroup.Children.Add(new ScaleTransform(ClipBackgroundScaleX, 1)); // tgroup.Children.Add(new TranslateTransform(0D, 30D * (ClipHeightZoom - 1))); // } // else // { // tgroup.Children.Add(new ScaleTransform(ClipBackgroundScaleX, ClipHeightZoom * ClipGainFactor)); // tgroup.Children.Add(new TranslateTransform(ClipBackgroundScaleX == 1 ? 0 : myWidth, (ClipHeightZoom - 1) * 60D / 2D - 7 - (ClipGainFactor * ClipHeightZoom - 1D) * 29D)); // } // return tgroup; // } //} } public class ClipBackgroundSource { public ClipBackgroundSource(BitmapSource bsource) { this.bSource = bsource; } public BitmapSource bSource { get; set; } }