* The following example demonstrates how to use the %ImageMetadata class.
*
* @code
+ * #include <FBase.h>
+ * #include <FContent.h>
+ * #include <FMedia.h>
+ * #include <FSystem.h>
+ *
+ * using namespace Tizen::Content;
+ *
* result
* MyClass::TestImageMetadata(void)
* {
- * result r = E_SUCCESS;
- *
* Tizen::Base::String contentPath = Tizen::System::Environment::GetMediaPath() + L"Images/full_meta.jpg";
* ImageMetadata* pImgMeta = ContentManagerUtil::GetImageMetaN(contentPath);
- * TryReturn(pImgMeta != null, GetLastResult(), "ContentManagerUtil::GetImageMetaN failed.");
+ * result r = GetLastResult();
*
- * // Width
* pImgMeta->GetWidth();
- *
- * // Height
* pImgMeta->GetHeight();
- *
- * // Camera
* pImgMeta->GetCameraManufacturer();
- *
- * // Model
* pImgMeta->GetCameraModel();
- *
- * // Software
* pImgMeta->GetSoftware();
- *
- * // Date time
* pImgMeta->GetDateTime();
*
- * // Thumbnail
* Tizen::Media::Image image;
* r = image.Construct();
- * if (IsFailed(r))
- * {
- * delete pImgMeta;
- * return r;
- * }
*
* Tizen::Graphics::Bitmap* pBitmap = pImgMeta->GetThumbnailN();
- * if (pBitmap == null)
- * {
- * delete pImgMeta;
- * return GetLastResult();
- * }
+ * r = GetLastResult();
*
* Tizen::Base::String thumbnailPath = Tizen::System::Environment::GetMediaPath() + L"Images/image.bmp";
* r = image.EncodeToFile(*pBitmap, Tizen::Media::IMG_FORMAT_BMP, thumbnailPath, false);
- * if (IsFailed(r))
- * {
- * delete pImgMeta;
- * delete pBitmap;
- * return r;
- * }
*
* delete pImgMeta;
* delete pBitmap;
*
* @since 2.0
*
- * @param[in] rhs An instance of %ImageMetadata
+ * @param[in] rhs An instance of %ImageMetadata to copy
*/
ImageMetadata(const ImageMetadata& rhs);
* @since 2.0
*
* @return The version of either the software or the firmware of the camera or the image input device
- * used to generate the image
+ * used to generate the image
*/
Tizen::Base::String GetSoftware(void) const;
* @since 2.0
*
* @return The latitude of the image
- * @remarks If there is no latitude in the image, @c -200.0 is returned.
+ * @remarks If there is no latitude in the image, @c -200.0 is returned.
*/
double GetLatitude(void) const;
* @since 2.0
*
* @return The longitude of the image
- * @remarks If there is no longitude in the image, @c -200.0 is returned.
+ * @remarks If there is no longitude in the image, @c -200.0 is returned.
*/
double GetLongitude(void) const;
*
* @since 2.0
*
- * @return A pointer to the thumbnail image
+ * @return A pointer to the thumbnail image
* @exception E_SUCCESS The method is successful.
* @exception E_DATA_NOT_FOUND The thumbnail image does not exist.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
Tizen::Graphics::Bitmap* GetThumbnailN(void) const;
/**
- * Compares the equality of values between two %ImageMetadata objects by overriding the Tizen::Base::Object::Equals() method.
+ * Compares the equality of the values between the two %ImageMetadata objects by overriding the Tizen::Base::Object::Equals() method.
*
* @since 2.0
*
* @return @c true if all the fields in the objects are equal, @n
- * else @c false
- * @param[in] rhs The Tizen::Base::Object with which the comparison is done @n
- * An instance of Tizen::Graphics::Bitmap is not taken into account in the comparisons.
+ * else @c false
+ * @param[in] rhs The Tizen::Base::Object with which the comparison is done @n
+ * An instance of Tizen::Graphics::Bitmap is not taken into account in the comparisons.
*/
virtual bool Equals(const Tizen::Base::Object& rhs) const;
* @since 2.0
*
* @return A reference to this instance
- * @param[in] rhs An instance of %ImageMetadata
+ * @param[in] rhs An instance of %ImageMetadata to copy
*/
ImageMetadata& operator =(const ImageMetadata& rhs);