Files
libopenshot/src/Timeline.cpp

18 lines
417 B
C++
Raw Normal View History

#include "../include/Timeline.h"
using namespace openshot;
// Default Constructor for the timeline (which sets the canvas width and height)
Timeline::Timeline(int width, int height)
{
// Init canvas size
canvas_width = width;
canvas_height = height;
// Init viewport size (curve based, because it can be animated)
viewport_scale = Keyframe(100.0);
viewport_x = Keyframe(0.0);
viewport_y = Keyframe(0.0);
}