Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/index.php)
-   Feature Requests, Feedback And Suggestions (http://forum.bsplayer.com/forumdisplay.php?f=9)
-   -   drawing on overlay from plugin (http://forum.bsplayer.com/showthread.php?t=6955)

coyoteelabs 15th November 2005 10:09 PM

drawing on overlay from plugin
 
Can a bitmap be drawn on the overlay surface?

If yes, how?

And if possible, how to get the width and height of the window (not the movie).

Tizio 16th November 2005 10:18 PM

What do you mean by "..how to get the width and height of the window.."?

If you have any clues on VisualBasic programming, you can use the code I wrote here to retrieve the MovieWindow dimensions.

The code you need is the second one, and in specific the following line:
'Retrieve the MovieWindowSize
GetWindowRect ParentHwnd, Rec

Then if you want the window size, you only have to make the following subtractions:
MovieWindowWidth = Rec.Right - Rec.Left
MovieWindowHeight = Rec.Bottom - Rec.Top

If you didn't mention this.. don't consider my post :wink:
Otherway tell me if you found it usefull or if you have problems in useing it.

Bye :)

coyoteelabs 7th December 2005 02:32 PM

10x for the info Tizio, but I still need to find out how to draw a bitmap on the OVERLAY.

I need to know this because I'm working on a custom subtitle format with complete HTML 3.02 formatting (full color support, fonts, IMAGES, position, tables, div, etc).

If I manage to make this plugin I would post it here (freeware) as well as an editor for creating subtitles.


All times are GMT +1. The time now is 02:34 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20