StrokeStyle DotStrokeStyle() { StrokeStyleProperties properties = new StrokeStyleProperties() { StartCap = CapStyle.Round, EndCap = CapStyle.Round, DashCap = CapStyle.Round, LineJoin = LineJoin.Round, MiterLimit = 1.0f, DashStyle = DashStyle.Dot, DashOffset = 1.0f }; // Doesn't seem to matter what number pattern I use here: float[] dashes = { 2.0f, 2.0f, 2.0f, 2.0f }; // If I have the dashes parameter in the StrokeStyle constructor below, I get an exception // but no indication what the exception is. I also don't get a callstack. (Presumably b/c // this is "unsafe" code?) // // If I do NOT include the dashes parameter, I don't get an exception. I have also tried // using RenderTarget.Factory for kicks, but got the same result. return new StrokeStyle(Core.Globals.D2DFactory, properties, dashes); }
Cheers,
Peter
Comment