2 * Copyright 2010, Stephan Aßmus <superstippi@gmx.de>.
3 * Distributed under the terms of the MIT License.
5 #ifndef SUBTITLE_BITMAP_H
6 #define SUBTITLE_BITMAP_H
17 class SubtitleBitmap
{
20 virtual ~SubtitleBitmap();
22 bool SetText(const char* text
);
23 void SetVideoBounds(BRect bounds
);
24 void SetOverlayMode(bool overlayMode
);
25 void SetCharsPerLine(float charsPerLine
);
27 const BBitmap
* Bitmap() const;
30 void _GenerateBitmap();
31 void _InsertText(BRect
& bounds
,
32 float& outlineRadius
, bool overlayMode
);
37 BTextView
* fShadowTextView
;
47 #endif // SUBTITLE_BITMAP_H