public static extern global::System.IntPtr Upcast(global::System.IntPtr jarg1);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_PixelData_New")]
- public static extern global::System.IntPtr New([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)] byte[] jarg1, uint jarg2, uint jarg3, uint jarg4, int jarg5, int jarg6);
+ public static extern global::System.IntPtr New([global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray)] byte[] jarg1, uint jarg2, uint jarg3, uint jarg4, int jarg5);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_PixelData__SWIG_0")]
public static extern global::System.IntPtr NewPixelData();
/// <param name="width">Buffer width in pixels.</param>
/// <param name="height">Buffer height in pixels.</param>
/// <param name="pixelFormat">The pixel format.</param>
- /// <param name="releaseFunction">The function used to release the memory.</param>
/// <since_tizen> 5 </since_tizen>
/// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public PixelData(byte[] buffer, uint bufferSize, uint width, uint height, PixelFormat pixelFormat, PixelData.ReleaseFunction releaseFunction) : this(Interop.PixelData.New(buffer, bufferSize, width, height, (int)pixelFormat, (int)releaseFunction), true)
+ public PixelData(byte[] buffer, uint bufferSize, uint width, uint height, PixelFormat pixelFormat) : this(Interop.PixelData.New(buffer, bufferSize, width, height, (int)pixelFormat), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
{
}
- /// <summary>
- /// Enumeration for function to release the pixel buffer.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum ReleaseFunction
- {
- /// <summary>
- /// Use free function to release the pixel buffer.
- /// </summary>
- Free,
-
- /// <summary>
- /// Use delete[] operator to release the pixel buffer.
- /// </summary>
- DeleteArray
- }
-
/// <summary>
/// Generate Url from pixel data.
/// </summary>
byte[] buffer = new byte[1024];
- var testingTarget = new PixelData(buffer, 1024, 100, 150, PixelFormat.L8, PixelData.ReleaseFunction.Free);
+ var testingTarget = new PixelData(buffer, 1024, 100, 150, PixelFormat.L8);
Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
byte[] buffer = new byte[10];
- using (PixelData pixelData = new PixelData(buffer, 10, 1, 2, PixelFormat.L8, PixelData.ReleaseFunction.Free))
+ using (PixelData pixelData = new PixelData(buffer, 10, 1, 2, PixelFormat.L8))
{
var testingTarget = new PixelData(PixelData.getCPtr(pixelData).Handle, true);
Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
byte[] buffer = new byte[10];
- var testingTarget = new PixelData(buffer, 10, 1, 2, PixelFormat.L8, PixelData.ReleaseFunction.Free);
+ var testingTarget = new PixelData(buffer, 10, 1, 2, PixelFormat.L8);
Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
byte[] buffer = new byte[10];
- var testingTarget = new PixelData(buffer, 10, 1, 2, PixelFormat.L8, PixelData.ReleaseFunction.Free);
+ var testingTarget = new PixelData(buffer, 10, 1, 2, PixelFormat.L8);
Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
byte[] buffer = new byte[10];
- var testingTarget = new PixelData(buffer, 10, 1, 2, PixelFormat.L8, PixelData.ReleaseFunction.Free);
+ var testingTarget = new PixelData(buffer, 10, 1, 2, PixelFormat.L8);
Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
byte[] buffer = new byte[10];
- var testingTarget = new PixelData(buffer, 10, 1, 2, PixelFormat.BGR8888, PixelData.ReleaseFunction.Free);
+ var testingTarget = new PixelData(buffer, 10, 1, 2, PixelFormat.BGR8888);
Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");