Loading...
Searching...
No Matches
Negate.h
Go to the documentation of this file.
// Copyright (c) 2008-2019 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_NEGATE_EFFECT_H
#define OPENSHOT_NEGATE_EFFECT_H
#include "../EffectBase.h"
#include "../Frame.h"
#include "../KeyFrame.h"
#include <memory>
#include <string>
#include <QImage>
namespace openshot
{
class Negate : public EffectBase
{
public:
Negate();
std::shared_ptr<openshot::Frame> GetFrame(int64_t frame_number) override { return GetFrame(std::make_shared<openshot::Frame>(), frame_number); }
std::shared_ptr<openshot::Frame> GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t frame_number) override;
// Get and Set JSON methods
std::string Json() const override;
void SetJson(const std::string value) override;
Json::Value JsonValue() const override;
void SetJsonValue(const Json::Value root) override;
// Get all properties for a specific frame
std::string PropertiesJSON(int64_t requested_frame) const override;
};
}
#endif
openshot::EffectBase
This abstract class is the base class, used by all effects in libopenshot.
Definition EffectBase.h:53
openshot::Negate
This class uses the ImageMagick++ libraries, to negate image (i.e. negative)
Definition Negate.h:35
openshot::Negate::GetFrame
std::shared_ptr< openshot::Frame > GetFrame(int64_t frame_number) override
This method is required for all derived classes of ClipBase, and returns a new openshot::Frame object...
Definition Negate.h:47
openshot::Negate::SetJson
void SetJson(const std::string value) override
Load JSON string into this object.
Definition Negate.cpp:62
openshot::Negate::JsonValue
Json::Value JsonValue() const override
Generate Json::Value for this object.
Definition Negate.cpp:51
openshot::Negate::Negate
Negate()
Default constructor.
Definition Negate.cpp:19
openshot::Negate::SetJsonValue
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
Definition Negate.cpp:79
openshot::Negate::Json
std::string Json() const override
Generate JSON string of this object.
Definition Negate.cpp:44
openshot::Negate::PropertiesJSON
std::string PropertiesJSON(int64_t requested_frame) const override
Definition Negate.cpp:87
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29