How to save WPF as PNG? [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
how can I save my WPF project to PNG? Need to save this picture input with text on it in PNG.
enter image description here
The main idea of the project is to make adjustable broadcast graphics. So I have presets and can change font size/style, background photo, or color. Need to make 4 presets:
Title
Background for picture-in-picture
Namge graphics
Different backgrounds with generic titles.
May be any ideas or tutorials for how to optimize broadcast graphics. I already have all visuals. Need for TV conference broadcasting. Also up to use any other coding languages. Looking for options

Related

"Reading" the information from picture in C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am trying to develop code to read out positional data from a picture thats been loaded into the program.
F.E. : Imagine a picture with houses (red squares) connected with lines.
Now what i would need are the posotions of the houses and the lines in such a way that i can use that data and do more with it.
So : - Load Jpg (f.e) into the programm
- Read the picture and save postions
- Be able to work with the saved positional data.
My issue is that i struggle to find the right way to google this. Is it's as difficult as machine learing or is there a more simple way to solve this?
No need to get it explained, but more a place where i can start research this myself would be awesome!
If you want to find contours, you will be interested in Hough Transformation. Check the image on the bottom.
I recommeng getting a hang on OpenCV image processing library (more specifically the EmguCV which is a C# wrapper of OpenCV). It has a fairly big community and it's a project working for ages.
Generally contour recognition and line recognition algorithm are a good shot. You could add opencv to the search phrase.
If you want to detect lines, Canny edge detection would be a nice shot. Once again I recommend OpenCV for this task.

Take sound effect from video [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I need a digital typeing sound effect.when numbers are typed,Sound effect appears in background of the video.I want to make a program that when I press the keyboard, I also listen this sound effect.How can I find this sound effect or take from this video?
the sound effect between 0:50 and 1:15
www.youtube.com/embed/kIXNpePYzZU
For the 'extracting the sound effect' part of the question, you would likely want to use an online video/audio downloader/converter. In the past, I have used youtube-mp3.org and clipconverter.cc.
For the second part of the question, it depends what exactly you want. If you want it to apply only to a specific text box in a WinForms/WPF/UWP app you are writing, this should be reasonably easy. The exact method depends on what you are doing, but involves adding a keydown, keyup, or keypress event handler to the text box
If you want it system wide, this is more difficult. Searching for 'Global Keyboard Hook C#' appears to give good results.
Once you have detected the key press, have a look at this question for how to play the sound. The answer by bporter gives the following code:
System.Media.SoundPlayer player = new System.Media.SoundPlayer(#"c:\mywavfile.wav");
player.Play();
Use this to convert the video to mp3. Clip the sound effect out of the mp3. Then play the mp3 file with your code.

How to print something in WPF without using controls? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm newbie in WPF and I'm trying to print student's exam papers using WPF and I'm creating exam papers using System.Drawing.Graphics and now I want to print them.
But it seems every printable thing in WPF is somehow a control. I have two problems:
I don't know how can I print something that I've created via Graphics Like WinForms PrintDocument (that has it's own problems)
I don't know how to create my exampaper in WPF like what I did with graphics.
would you help me with any of theses questions?
You can utilize the utilize the PrintDocument class, which is not WPF specific. This class allows you to send output to a printer. The PrintPage event should be handled, where you utilize the PrintPageEventArgs to obtain a Graphics context; which is used to draw the exam to the printer output. This is considered the Winforms way of printing.
WPF has enhanced printing support, provided by the System.Printing namespace. These printing services are used to manage print jobs, and to discover print queues, and configured printers. Printing in WPF is usually performed by generating an XPS document, by utilizing the XpsDocumentWriter class & methods. However, GDI printing is available as well, which is what you'd likely need, because of the use of System.Drawing.Graphics. Refer to the GDI Print Path section, here.

Can we replace Lockscreen in Windows Phone with our Prank App Screen? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am developing a Windows Phone App. In Which i am wondering that when i press unlock button of my Windows Phone then my app screen should be displayed. Can Anyone please suggest?
can i do the same as i want.
I believe that what you are describing can't be done in Windows Phone.
If it was possible every developer would try to place his/her app as the lock screen.
What you can do is create a tile and badge for your application and then the user can choose to display that.

JPEG , Bitmap , PNG printed in console [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to take each pixel and to print it to the console so that i can see the picture in black and white in the console screen.
Is that even possible?
i tried to load it with the system.IO File , but it wont work.
any suggestions?
thanks.
No, it is not possible. The windows command prompt is strictly text based(essentially all command prompts/terminals are this way). So, you cannot display GRAPHICAL content in a TEXT focused interface.
The only conceivable way(as far as I can tell) is what #EricFinn inquired about. Possibly converting the image to ASCII-art and printing each line to the command line. You may be able to modify THIS EXAMPLE if you want to move in the ASCII direction.

Categories

Resources