Sunday, April 5, 2020

Windows Movie Maker

Aim:-

Learning about Windows Movie Maker Features and Components
Adding
Images/ Videos/ Audio
Transitions and Visual Effects
Title, Caption and credits
Editing Media Clips
Saving and Exporting a Movie

Where it can be found

Windows movie maker can be downloaded as a free part of Windows Live Essential services

Few of the services included in this package are : Mail, Messenger, Photo Gallery, Movie Maker, Writer, Family Safety and other web based services for e.g. outlook, one drive etc.

Features of Windows Movie Maker

It’s projects are automatically saved at a fixed time interval.
Allows to download music from online libraries.
Audio tracks can be extracted from video files.
Outline can be added on text elements.
It uses lower resolution video for previewing purpose.

Audio can be represented as a waveform.

How to start windows movie maker

Start
All programs
Movie maker

Components of Windows Movie Maker


Storyboard: this is used to arrange and manage the video clips, transition and visual effects that are applied to these clips in our project.
Preview Monitor Pane: this helps us to watch or preview our work as we work on the our project.
Rest components are same as other applications of windows which we have read in our previous classes.

For watching Video on components of Windows Movie maker please visit https://youtu.be/OvvM-10ppbM


Windows Movie Maker Add Images and Videos 

How to Add Images and Videos in Movie Maker

Left click on "Add videos and photos (button)"  in Add group of Home tab.
Add Videos and Photos Dialogue box appears, Select Desired Videos and Photos.
Click Open button [this will close this dialogue box and add the selected files in movie maker].
To Customize the look

You can either use Zoom in (+) or Zoom out (-) button on Zoom Slider Bar

OR

By Right Click on particular image or video and than use Zoom in (+) or Zoom out (-) option from the context menu.

To view the movie click play button on Movie control Panel

Windows Movie Maker Add Music

How to Add Music in Movie Maker

Left click on "Add music (button)"  in Add group

 of Home tab.

Contextual menu will appear as shown in Figure
First three options are for searching music online
And the last two options for adding music from our system.
Method is same for both options the only difference is when using add music at the current point will add music from the current location, while using Add music will add music to whole file.
Click on Add music from contextual menu.
Add music dialogue box will appear, select the music file you want to add to your movie.
Click Open button [this will close this dialogue box and add the selected files in movie maker].
Now a green bar will appear in the story board at the bottom of the clips and images this indicates that the audio file has been imported.
To view the movie and listen to the music click play button on Movie control Panel

Note:- if there was any voice in the clips than original voices will be replaced with the music which has been imported.


How to Add Narrations in Movie Maker

We can record our voice using microphone and add it as a sound track or narration in our video. Let’s see how

Make sure that you have already added few clips or videos in your movie. Now left click on Record narration (button)"  in Add group of Home tab.
A new Narration tab will appear .
Click Record button and start recording your voice.
Once you are done than click on Stop button.
Save narration dialogue box will appear save your voice and this will be added to the clip. Which will be displayed with a pink bar under the clips.
To view the movie and to listen to your narration click play button on Movie control Panel

For watching Video on adding Images, Videos , music and Narrations of Windows Movie maker please visit https://youtu.be/ol850iSZIEc
For Downloading Presentation please  visit  SlideShare

Saturday, November 13, 2010

How to: Implement a Lightweight Class with Auto-Implemented Properties


in my previous article i have discussed about Auto implemented properties. In this example I will shows how we can create an immutable lightweight class which will serve the purpose only to encapsulate a set of auto-implemented properties. We can use this kind of construct in place of a struct when we must use reference type semantics.
Note that in case of auto-implemented properties, both a get and set accessor are required. We make the class immutable by declaring the set accessors as private(Yes this is possible in C#). However, declaring a private set accessor, we cannot use an object initializer to initialize the property. For this we must use a constructor or a factory method.
Example
The following example shows two ways to implement an immutable class that has auto-implemented properties. The first class uses a constructor to initialize the properties, and the second class uses a static factory method.
//ClassA
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LightweightClass
{
    // This is an immutable class. Once an object is created, it cannot be modified outside the class. It only uses its constructor to initialize properties.
    class ClassA
    {
        // Read-only properties.
        public string Property1 { get; private set; }
        public string Property2 { get; private set; }

        // Public constructor.
        public ClassA(string Value1, string Value2)
        {
            Property1 = Value1;
            Property2 = Value2;
        }
    }
}


//ClassB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LightweightClass
{
    // This is an immutable class. Once an object is created, it cannot be modified outside the class. It only uses its constructor or the public Factory Mthod to initialize properties.
    public class ClassB
    {
        // Read-only properties.
        public string Property1 { get; private set; }
        public string Property2 { get; private set; }

        // Private constructor.
        private ClassB(string Prop1, string Prop2)
        {
            Property1 = Prop1;
            Property2 = Prop2;
        }

        // Public factory method.
        public static ClassB CreateObject(string prop1, string prop2)
        {
            return new ClassB(prop1, prop2);
        }
    }


}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LightweightClass
{
    public class Program
    {
        static void Main()
        {
            // Some simple data sources.
            string[] names = {"Meetu Choudhary","Gaurav Arora", "Prabhjeet Gill",
                              "Nikita Rathi", "Manpreet Kaur"};
            string[] addresses = {"29 Jaipur", "12 Gaziabad.", "678 1st Ave",
                                  "12 Tonk", "89 Et. Mumabi"};

            // Simple query to demonstrate object creation in select clause.
            // Create objects of ClassA by using a constructor.
            var query1 = from i in Enumerable.Range(0, 5)
                         select new ClassA(names[i], addresses[i]);

            // List elements cannot be modified by client code.
            var list = query1.ToList();
            Console.WriteLine("Using Constroctor");
            foreach (var contact in list)
            {
                Console.WriteLine("{0}, {1}", contact.Property1 , contact.Property2 );
            }

            // Create ClassB objects by using a static factory method.
            var query2 = from i in Enumerable.Range(0, 5)
                         select ClassB.CreateObject(names[i], addresses[i]);

            // Console output is identical to query1.
            var list2 = query2.ToList();
            Console.WriteLine("Using Factory Method");
            foreach (var contact in list2)
            {
                Console.WriteLine("{0}, {1}", contact.Property1, contact.Property2);
            }
            // List elements cannot be modified by client code. this will gentrate the error
            // CS0272:
            // list2[0].Name = "Eugene Zabokritski";

            // Keep the console open in debug mode. to check
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}

Output

Using Constroctor
Meetu Choudhary, 29 Jaipur
Gaurav Arora, 12 Gaziabad.
Prabhjeet Gill, 678 1st Ave
Nikita Rathi, 12 Tonk
Manpreet Kaur, 89 Et. Mumabi
Using Factory Method
Meetu Choudhary, 29 Jaipur
Gaurav Arora, 12 Gaziabad.
Prabhjeet Gill, 678 1st Ave
Nikita Rathi, 12 Tonk
Manpreet Kaur, 89 Et. Mumabi
Press any key to exit.

Subscribe via email

Enter your email address:

Delivered by FeedBurner

MSDotnetMentor

MSDotnetMentor My Website http://msdotnetmentor.com