[ThumbnailExtractor] Add description for Extract method (#932)
authorhsgwon <haesu.gwon@samsung.com>
Fri, 19 Jul 2019 04:16:20 +0000 (13:16 +0900)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2019 04:16:20 +0000 (13:16 +0900)
* [ThumbnailExtractor] Add additional description for Extract method

src/Tizen.Multimedia.Util/ThumbnailExtractor/ThumbnailExtractor.cs
src/Tizen.Multimedia.Util/ThumbnailExtractor/ThumbnailExtractorError.cs

index 27e0343..3257684 100644 (file)
@@ -246,7 +246,10 @@ namespace Tizen.Multimedia.Util
         /// </summary>
         /// <remarks>
         /// The size of generated thumbnail will be 320x240.<br/>
-        /// If you want to set the size of generated thumbnail, please use <see cref="Extract(string, Size)"/><br/>
+        /// But, if the size of <paramref name="path"/> has different ratio with 320x240 (approximately 1.33:1),<br/>
+        /// thumbnail will be generated in a way to keep the ratio of <paramref name="path"/>, which based on short axis of <paramref name="path"/>.<br/>
+        /// For example, if the size of <paramref name="path"/> is 900x500 (1.8:1), the size of generated thumbnail is 432x240(1.8:1).<br/>
+        /// If you want to set the size, which is different with 320x240, please use <see cref="Extract(string, Size)"/>.<br/>
         /// <br/>
         /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage. <br/>
         /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
@@ -271,6 +274,12 @@ namespace Tizen.Multimedia.Util
         /// The generated thumbnail will be returned in <see cref="ThumbnailExtractionResult"/>.
         /// </summary>
         /// <remarks>
+        /// The size of generated thumbnail will be <paramref name="size"/>.<br/>
+        /// But, if the size of <paramref name="path"/> has different ratio with <paramref name="size"/>,<br/>
+        /// thumbnail will be generated in a way to keep the ratio of <paramref name="path"/>, which based on short axis of <paramref name="path"/>.<br/>
+        /// For example, if the size of <paramref name="path"/> is 900x500 (1.8:1)) and <paramref name="size"/> is 320x240,<br/>
+        /// the size of generated thumbnail is 432x240(1.8:1).<br/>
+        /// <br/>
         /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage. <br/>
         /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
         /// </remarks>
@@ -335,8 +344,11 @@ namespace Tizen.Multimedia.Util
         /// The generated thumbnail will be saved in <paramref name="resultThumbnailPath"/>.
         /// </summary>
         /// <remarks>
-        /// The size of generated thumbnail will be 320x240.<br/>
-        /// If you want to set the size of generated thumbnail, please use <see cref="Extract(string, Size, string)"/><br/>
+        /// The size of <paramref name="resultThumbnailPath"/> image will be 320x240.<br/>
+        /// But, if the size of <paramref name="path"/> has different ratio with 320x240 (approximately 1.33:1),<br/>
+        /// thumbnail will be generated in a way to keep the ratio of <paramref name="path"/>, which based on short axis of <paramref name="path"/>.<br/>
+        /// For example, if the size of <paramref name="path"/> is 900x500 (1.8:1), the size of <paramref name="resultThumbnailPath"/> is 432x240(1.8:1).<br/>
+        /// If you want to set the size, which is different with 320x240, please use <see cref="Extract(string, Size, string)"/>.<br/>
         /// <br/>
         /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage. <br/>
         /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
@@ -361,6 +373,12 @@ namespace Tizen.Multimedia.Util
         /// The generated thumbnail will be saved in <paramref name="resultThumbnailPath"/>.
         /// </summary>
         /// <remarks>
+        /// The size of <paramref name="resultThumbnailPath"/> image will be <paramref name="size"/>.<br/>
+        /// But, if the size of <paramref name="path"/> has different ratio with <paramref name="size"/>,<br/>
+        /// thumbnail will be generated in a way to keep the ratio of <paramref name="path"/>, which based on short axis of <paramref name="path"/>.<br/>
+        /// For example, if the size of <paramref name="path"/> is 900x500 (1.8:1) and <paramref name="size"/> is 320x240,<br/>
+        /// the size of <paramref name="resultThumbnailPath"/> is 432x240(1.8:1).<br/>
+        /// <br/>
         /// If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage. <br/>
         /// If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
         /// </remarks>
index 588d958..8aa9522 100644 (file)
@@ -1,4 +1,4 @@
-/*
+/*
  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the License);