wpf RenderContext discussion

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

ProCodeMyth wrote at 2013-05-29 08:08:

we can descripte 2d shape use geometry, drawing ,shape in wpf ,but three object is very deferent,only shape can display it on screen. geometry only descripe 2d graphic object which only store graphic data. geometry don't render by itslef ,so i think oxyplot don't need GeometryRenderContext , we can add geometry object to wpf Path classe Data propety. then we can see what we want . Drawingcontext is most closest to graphic of gdi, but drawingcontext
is abstract classe, to render any shape ,we have to use drawingcontext in visual ,once we draw what we want, drawingcontext must close. so DrawingRenderContext in oxyplot have means(value) only when we put DrawingRenderContext in visual and add visual to visual tree . if we want development in DrawingRenderContext envimoment , we mayehave to resturture entire oxyplot.wpf.

objo wrote at 2013-06-08 10:49:

DrawingRenderContext and GeometryRenderContext are not included in the build, these classes are just kept for reference.
There was not much performance improvement with DrawingRenderContext or GeometryRenderContext, and I think there were also some problems related to aliasing / anti-aliasing.

Another approach would be to create a render context based on DirectX (e.g. using SharpDX) or WriteableBitmap(using WriteableBitmapEx?).