I wanna put a media element to inside a image control . For example like this ;
<Image>
<MediaElement
</Image>
And after do this I wanna save this image to my computer as a image . Is something this possible accorting to you?
What you trying to do is impossible on many levels.
First of all, Image control does not support direct content so you can`t put any other control inside it. And this control is used to display some image, it is not image itself.
Second, MediaElement is used to contain video or audio. How can you save audio or video as image (image that makes sense anyways)?
So the answer to your question is: no, it`s not possible.
Related
How to save C# winforms Panel or PictureBox with animated elements to gif file?
I also tried to do it like this
pictureBox2.Image.Save(System.IO.Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "1.gif"),
System.Drawing.Imaging.ImageFormat.Gif);
but it save just static image without animation.
Take a look at this. The Bumpkit library he uses is open source, so you can just include the file you need in your solution.
I have made a window containing a Fixed container with two images .Here both images are dynamically set Images using Pixbuf. The two Images are overlapping . Like a frame and image .
How can I merge these images in one Image and save to the file system? Please help me I am new to this . Thanks
image12.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("TryNew.ivy.png");
According to this document, you will create a Pixbuf composite. The example there gives side-by-side images, but it would be the same principle for overlaying a frame on your picture.
I'm making an application in which I need to print a content of the wpf richtextbox to an image, my application requires extremly fast perfomance, so the solution which uses WinForms RichTextBoxPrintCtrl (my own class with Handle on the control itself) with overlay, works way too slow for me, is there any way i can make a printable(saving as an image, or renderable to Bitmap) wpf richtextobx?
check these links hope help :
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.rendertargetbitmap.aspx
http://www.codeproject.com/Articles/103184/How-to-Render-Bitmap-or-to-Print-a-Visual-in-WPF
http://www.west-wind.com/weblog/posts/2007/Sep/10/Rendering-a-WPF-Container-to-Bitmap
I'm new to this concept but I'm sure there should be solution to it. I'm storing a design (a series of lines and shapes) as XML, also can save/load the drawing into/from XML file.
Now, new idea is:
1) How to show a thumbnail of the drawing such could be placed on a toolbar or panel (as toolbox)
2) By dragging/dropping of this thumbnail on a canvas it will open and show the drawing.
You should know more about "ViewBox" that is made for thumbnail things and it has many other usages. You can give it any WPF contents and it will do the thumbnail thing by some specific options.
Cheers
I'd like to make some fancy live tiles. But I am not quite happy with the default options for it. Is there a way in C#/XAML or any site, that shows how to put an own design for a live tile?
the default font size of the Tile cannot be changed. You can only change the text. What you can do is create an image that has text on it and set that to the BackgroundImage or the BackBackgroundImage. You can create an image by using the WriteableBitmap or WriteableBitmapEx.