dcsimg
Results 1 to 3 of 3

Thread: HELP: How do I get the Size of a Movie (avi) I opened in an OpenFileDialog?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2010
    Posts
    106

    Question HELP: How do I get the Size of a Movie (avi) I opened in an OpenFileDialog?

    Im trying to code a media player from scratch and I noticed that the Movie I play will always stretch out to my moviewindow size Ruining the aspect ratio--I want to get the size of the original File, and make it work alwasy have that aspect Ratio...I cannot get the size,

    Thanks
    -Lobster Productions
    http://lobsterproductions.weebly.com/

  2. #2
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: HELP: How do I get the Size of a Movie (avi) I opened in an OpenFileDialog?

    By size what do you mean?
    Bytes or?

    Dim f As New IO.FileInfo(FilePath)
    Dim size As Integer = CInt(f.Length)
    msg(size)
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  3. #3
    Member
    Join Date
    May 2010
    Posts
    60

    Re: HELP: How do I get the Size of a Movie (avi) I opened in an OpenFileDialog?

    Resize after loading. The mediaplayercontrol has two properties. ImagesourceHeight imagesourceWidth.

    Load the movie then resize the window acording to the info.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width