killoqq.blogg.se

How to make photo frame video in windows 8
How to make photo frame video in windows 8










how to make photo frame video in windows 8

G.CopyFromScreen(axWindowsMediaPlayer2.PointToScreen( Graphics gg = axWindowsMediaPlayer2.CreateGraphics() If (!string.IsNullOrEmpty(axWindowsMediaPlayer2.URL))īitmap bitmap = new Bitmap(axWindowsMediaPlayer2.Width, axWindowsMediaPlayer2.Height)

how to make photo frame video in windows 8

String uimode_previus = axWindowsMediaPlayer2.uiMode Here is working example private void button8_Click_1(object sender, EventArgs e) It is a little workaround but it does the job. In that way you only get the actual shoot from the current frame. Then when capture is done set the uimode back to previous like this : axWindowsMediaPlayer2.uiMode = uimode_previus With previous answer a trick to avoid getting the controls on the capture is to do this before you capture : string uimode_previus = axWindowsMediaPlayer2.uiMode afterwards save bitmap file if user wants to Graphics gg = axWindowsMediaPlayer1.CreateGraphics() take picture BEFORE saveFileDialog pops up!!īitmap bitmap = new Bitmap(axWindowsMediaPlayer1.Width, axWindowsMediaPlayer1.Height) if (!string.IsNullOrEmpty(axWindowsMediaPlayer1.URL))Ī() I create the picture right before the saveFileDialog pops up, so you will really get only the picture and not the saveFileDialog within your pic.

#How to make photo frame video in windows 8 code

I put the code to capture the photo a little bit up and now it works. I use Timer because when the user selects the save path, function takes image from the file user specified in save file dialog. New (axWMVMovie.Width, axWMVMovie.Height)) G.CopyFromScreen(axWMVMovie.PointToScreen(new ()).X,ĪxWMVMovie.PointToScreen(new ()).Y, 0, 0, Private void timerTakePicFromVideo_Tick(object sender, EventArgs e) Using (MemoryStream ms = new MemoryStream())īitmap.Save(ms, .Png) Graphics gg = axWMVMovie.CreateGraphics() If (saveFileDialog1.ShowDialog() = DialogResult.OK)īitmap bitmap = new Bitmap(axWMVMovie.Width, axWMVMovie.Height)

how to make photo frame video in windows 8

If (!string.IsNullOrEmpty(axWMVMovie.URL)) Private void btnTakePicture_Click(object sender, EventArgs e) I tried this code, but the resulting image was black: private Graphics g = null I did a lot of tests and code examinations but I couldn't find out why taking a picture of the current frame fails. In my form I have a button to take a picture of the current video frame. As soon as you collage is ready, click the Save button to save it onto PC. If you want an artistic frame, click the Frame button and select the one you need. To make the corners round, use the Round option. In my windows application I use Windows Media Player dlls to play a video. To add a simple frame, set Outer Margin, Interval of photos and Margin Color parameters.












How to make photo frame video in windows 8