Reputation: 11090
I am doing a small project of my own - A Fractal Generator.
Would th einbuilt graphics of C# be adequate or would WPF be preferable? I've never had a look at WPF, is it complicated and is it worthwhile learning?
Upvotes: 1
Views: 979
Reputation: 49619
Yes, WPF is
WPF was designed to replace GDI+/System.Drawing, so it contains most of the low level bitmap stuff you would expect (only this time with hardware accelleration) which can mostly be found in the namespace System.Windows.Media.Imaging.
The only API that might be superior in terms of functionality and performance (but not necessarily ease of use) could be the new Direct2D.
Upvotes: 5
Reputation: 27495
WPF is more about creating the overall UI for the application, with rich integration between the data and the visualization. For the purpose of actually generating your fractal, it won't matter whether you use WPF, although the way you display the result in the UI will differ in WPF vs. WinForms. In either case, you're probably going to want to output directly to a locked Bitmap buffer.
If you have more experience with WinForms, I'd recommend using that for now, so that you can focus on the application code. WPF is worth learning, but it definitely has a learning curve.
Upvotes: 1
Reputation: 9265
WPF is a GUI framework, not a graphic framework.
For a fractal generator, all you need is a way to display or write on disk an array of pixels. System.Drawing is more than enought.
Now, if you need advanced graphical interface to surround that, by all means, go for WPF.
Upvotes: 0