ResizeMovie() vs MovieWidth-/Height()
Posted: Sat Sep 11, 2010 9:41 pm
imho MovieWidth/-Height() should return the new values, after using ResizeMovie().
btw it would be cool to have a #PB_Movie_Width/-Height flag for MovieInfo(), which return the original Width/Height:
and #PB_Ignore is missing for the x, y, Width, Height parameters of ResizeMovie().
c ya,
nco2k
Code: Select all
If InitMovie() And LoadMovie(0, #PB_Compiler_Home+"Examples\Sources\Data\Geebee2.bmp")
Debug MovieWidth(0); returns 128
Debug MovieHeight(0); returns 128
ResizeMovie(0, 0, 0, 640, 480)
Debug MovieWidth(0); still returns 128, should be 640
Debug MovieHeight(0); still returns 128, should be 480
EndIf
Code: Select all
If InitMovie() And LoadMovie(0, #PB_Compiler_Home+"Examples\Sources\Data\Geebee2.bmp")
Debug MovieWidth(0); will return 128
Debug MovieHeight(0); will return 128
Debug MovieInfo(0, #PB_Movie_Width); will return 128
Debug MovieInfo(0, #PB_Movie_Height); will return 128
ResizeMovie(0, 0, 0, 640, 480)
Debug MovieWidth(0); will return 640
Debug MovieHeight(0); will return 480
Debug MovieInfo(0, #PB_Movie_Width); will return 128
Debug MovieInfo(0, #PB_Movie_Height); will return 128
EndIf

c ya,
nco2k