Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/)
-   Feature Requests, Feedback And Suggestions (http://forum.bsplayer.com/feature-requests-feedback-suggestions/)
-   -   drawing on overlay from plugin (http://forum.bsplayer.com/feature-requests-feedback-suggestions/6955-drawing-overlay-plugin.html)

coyoteelabs 15th November 2005 09: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 09: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 01: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 10:12 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, 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