#define DALI_CAPTURE_H
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <dali/public-api/signals/dali-signal.h>
#include <dali/public-api/actors/camera-actor.h>
-// INTERNAL HEADERS
+// INTERNAL INCLUDES
+#include <dali/public-api/dali-adaptor-common.h>
+#include <dali/public-api/adaptor-framework/native-image-source.h>
namespace Dali
{
/**
* @brief Capture snapshots the current scene and save as a file.
*
- * @SINCE_1_3_4
+ * @SINCE_1_3.4
*
* Applications should follow the example below to create capture :
*
* }
* @endcode
*/
-class DALI_IMPORT_API Capture : public BaseHandle
+class DALI_ADAPTOR_API Capture : public BaseHandle
{
public:
Capture();
/**
- * @PRIVLEVEL_PLATFORM
* @brief Create an initialized Capture.
*
* @SINCE_1_3_4
- * @PRIVILEGE_CAPTURE
*
* @return A handle to a newly allocated Dali resource.
* @note Projection mode of default cameraActor is Dali::Camera::PERSPECTIVE_PROJECTION
- * @note If permission denied by privilege occurs, a uninitialized handle is returned
*/
static Capture New();
/**
- * @PRIVLEVEL_PLATFORM
* @brief Create an initialized Capture.
*
* @SINCE_1_3_4
- * @PRIVILEGE_CAPTURE
*
* @param[in] cameraActor An initialized CameraActor.
* @return A handle to a newly allocated Dali resource.
- * @note If permission denied by privilege occurs, a uninitialized handle is returned
*/
static Capture New( Dali::CameraActor cameraActor );
void Start( Actor source, const Vector2& size, const std::string &path );
/**
+ * @brief Get NativeImageSourcePtr that is saved captured image.
+ *
+ * @SINCE_1_9.10
+ */
+ Dali::NativeImageSourcePtr GetNativeImageSource() const;
+
+ /**
* @brief Get finished signal.
*
* @SINCE_1_3_4
CaptureFinishedSignalType& FinishedSignal();
public: // Not intended for application developers
+ /// @cond internal
/**
* @brief This constructor is used by New() methods.
*
* @param[in] internal A pointer to a newly allocated Dali resource.
*/
explicit DALI_INTERNAL Capture( Internal::Adaptor::Capture* internal );
+ /// @endcond
};
/**