33 #ifndef OPENSHOT_QT_TEXT_READER_H 34 #define OPENSHOT_QT_TEXT_READER_H 97 std::string text_color;
98 std::string background_color;
99 std::string text_background_color;
100 std::shared_ptr<QImage> image;
119 QtTextReader(
int width,
int height,
int x_offset,
int y_offset,
GravityType gravity, std::string text, QFont font, std::string text_color, std::string background_color);
136 std::shared_ptr<openshot::Frame>
GetFrame(int64_t requested_frame);
142 std::string
Name() {
return "QtTextReader"; };
146 void SetJson(std::string value);
Header file for ReaderBase class.
std::string Json()
Get and Set JSON methods.
void SetTextBackgroundColor(std::string color)
void Close()
Close Reader.
This abstract class is the base class, used by all readers in libopenshot.
void SetJsonValue(Json::Value root)
Load Json::JsonValue into this object.
Header file for CacheMemory class.
void SetJson(std::string value)
Load JSON string into this object.
Header file for all Exception classes.
bool IsOpen()
Determine if reader is open or closed.
openshot::CacheMemory * GetCache()
Get the cache object used by this reader (always returns NULL for this object)
This class uses Qt libraries, to create frames with "Text", and return openshot::Frame objects...
Header file for TextReader class.
This namespace is the default namespace for all code in the openshot library.
void Open()
Open Reader - which is called by the constructor automatically.
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame)
QtTextReader()
Default constructor (blank text)
std::string Name()
Return the type name of the class.
Json::Value JsonValue()
Generate Json::JsonValue for this object.
This class is a memory-based cache manager for Frame objects.
GravityType
This enumeration determines how clips are aligned to their parent container.