I am using inkcanvas for free hand drawing in my application, once i draw i need to smooth that image, how to achieve that with WPF?any one can guide me?
Related
What components or 3d party controls exist for creating a paint or canvas based program similar to Photoshop or ArtRage for WinForms and WPF?
You'll want to use the Canvas control. There's an introduction to it here. You can customize the hell out of it using adorners and mouse events as well.
I am newbie to WPF.
I have drawn simple 3D cube and rotate it with mouse
But my question is,
is it possible to draw wireframe object in WPF Without using any third party library(eg.Charles Petzold's libraty etc..)?
Unfortunatly the DirectX that WPF is built upon doesn't allow drawing lines, only rectangles which in turn means no wireframe. Sorry, you´ll have to look around for another solution.
I have a task to build image cropping functionality in Silverlight 4.0 application. What I need to do is to have user on the left button mouse click select area to remain after cropping is applied and then call some other event (button click maybe) to apply that cropping itself.
I did develop similar functionality for rotation. I am pretty sure it is possible to do for cropping as well but that task is probably rare at this point for I can't find tutorials on the topic in the net.
If you guys can get me a snippet to begin with or point to some good tutorial about Silverlight 4.0 image cropping, I would appreciate it.
Thanks!
As far as cropping images are concerned you can use the WriteableBitmapEx library on codeplex.
Now you just need to draw a rectangle on a canvas containing the image to describe the crop region.
WPF: What is the best way to implement Zoom In and Zoom Out option for an Image inside ScrollViewer in WPF at runtime and also other alternative methods for the same
Please provide sample code and suggest links where I can find sample code and more info about various ways to Zoom the image.
Regards,
Anwar
There are many pan and zoom viewers for wpf. A few that I have found helpful to learn and to borrow code are:
WPF Extensions
http://wpfextensions.codeplex.com/
Pan and Zoom (DeepZoom style) in WPF
http://blogs.windowsclient.net/joeyw/archive/2008/08/05/pan-and-zoom-deepzoom-style-in-wpf.aspx
You could use a ScaleTransform to zoom in and out, and a TranslateTransform for panning
I'm developing a graph control in WPF. I have previously developed it using GDI and C#.
i've used double buffering in previous control to avoid some issues related to redrawing of the graph control.
Now when i've developed the Graph Control in WPF i have a problem, when i use my Graph Control as a user control in a windows form,anchoring it to the form,and when running it and resizing it i can clearly see two black lines horizontal one and a vertical one in the right and bottom corners of the graph control... i think when i am resizing the graph, to occupy the resized area graph control is taking time and in the mean time the area not filled by the control is seen black...
is there any solution to this problem in WPF? like double buffering?
how can i avoid this issue??
regards,
rangana.
WPF uses DirectX for rendering, so you don't need to doubleBuffer. Perhaps the problem is in your layout code.