|
-
May 14th, 2010, 06:35 PM
#1
Thread Starter
Lively Member
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/
-
May 14th, 2010, 09:17 PM
#2
Frenzied Member
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)
-
May 15th, 2010, 11:28 AM
#3
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|