Example #1
0
        /// <summary>
        /// Gets the label for the image object.
        /// </summary>
        /// <returns>
        /// The label value if the <see cref="ImageObject"/> has label, otherwise null.
        /// </returns>
        /// <exception cref="ObjectDisposedException">The <see cref="ImageObject"/> has already been disposed of.</exception>
        /// <seealso cref="SetLabel(int)"/>
        /// <since_tizen> 4 </since_tizen>
        public int?GetLabel()
        {
            var ret = InteropImage.GetLabel(Handle, out var label);

            if (ret == MediaVisionError.NoData)
            {
                return(null);
            }

            ret.Validate("Failed to get label");
            return(label);
        }