-using System.Diagnostics;
-using System;
-using System.Drawing;
/*
* Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
*
*/
+using System.Diagnostics;
+using System;
+using System.Drawing;
+
namespace Tizen.NUI
{
using global::System;
using global::System.ComponentModel;
using global::System.Runtime.InteropServices;
- using global::System.ComponentModel;
using Tizen.NUI.BaseComponents;
/// <summary>
/// <exception cref="InvalidOperationException">This exception can be due to the invalid size values, of when width or height is lower than zero.</exception>
/// <exception cref="ArgumentNullException">This exception is due to the path is null.</exception>
[EditorBrowsable(EditorBrowsableState.Never)]
- public void Start(Container source, Position position, Size size, string path, Color color )
+ public void Start(Container source, Position position, Size size, string path, Color color)
{
- if (size.Width <= 0 || size.Height <=0)
+ if (size.Width <= 0 || size.Height <= 0)
{
throw new InvalidOperationException("size should larger than zero");
}
/// <exception cref="InvalidOperationException">This exception can be due to the invalid size values, of when width or height is lower than zero.</exception>
/// <exception cref="ArgumentNullException">This exception is due to the path is null.</exception>
[EditorBrowsable(EditorBrowsableState.Never)]
- public void Start(Container source, Size size, string path, Color color, uint quality )
+ public void Start(Container source, Size size, string path, Color color, uint quality)
{
- if (size.Width <= 0 || size.Height <=0)
+ if (size.Width <= 0 || size.Height <= 0)
{
throw new InvalidOperationException("size should larger than zero");
}
[EditorBrowsable(EditorBrowsableState.Never)]
public void Start(Container source, Size size, string path, Color color)
{
- if (size.Width <= 0 || size.Height <=0)
+ if (size.Width <= 0 || size.Height <= 0)
{
throw new InvalidOperationException("size should larger than zero");
}
[EditorBrowsable(EditorBrowsableState.Never)]
public void Start(Container source, Size size, string path)
{
- if (size.Width <= 0 || size.Height <=0)
+ if (size.Width <= 0 || size.Height <= 0)
{
throw new InvalidOperationException("size should larger than zero");
}
{
throw new ArgumentNullException("path should not be null");
}
-
+
if (source is View || source is Layer)
{
Interop.Capture.Start2(swigCPtr, source.SwigCPtr, new Vector2(size.Width, size.Height).SwigCPtr, path);
{
throw new InvalidOperationException("quality should between zero to 100");
}
-
+
Interop.Capture.SetImageQuality(swigCPtr, quality);
}