Class NativeImageQueue

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll

NativeImageQueue is a class for displaying an image resource using queue.

C#
Copy
public class NativeImageQueue : NativeImageInterface
Inheritance
Examples
Copy
NativeImageQueue queue = new NativeImageQueue(width,height,ColorFormat.RGBA8888); if(queue.CanDequeueBuffer()) { var buffer = queue.DequeueBuffer(ref bufferWidth,ref bufferHeight,ref bufferStride); /* Use buffer */ queue.EnqueueBuffer(buffer); }

Constructors

View Source

NativeImageQueue(UInt32, UInt32, NativeImageQueue.ColorFormat)

Creates an initialized NativeImageQueue with size and color format.

Declaration
C#
Copy
public NativeImageQueue(uint width, uint height, NativeImageQueue.ColorFormat colorFormat)
Parameters
Type Name Description
UInt32 width

A Width of queue.

UInt32 height

A Height of queue.

NativeImageQueue.ColorFormat colorFormat

A color format of queue.

Methods

View Source

CanDequeueBuffer()

Checks if the buffer can be got from the queue.

Declaration
C#
Copy
public bool CanDequeueBuffer()
Returns
Type Description
Boolean

True if the buffer can be got from the queue.

View Source

DequeueBuffer(ref Int32, ref Int32, ref Int32)

Dequeue buffer from the queue.

Declaration
C#
Copy
public IntPtr DequeueBuffer(ref int width, ref int height, ref int stride)
Parameters
Type Name Description
Int32 width

A reference to the buffer's width.

Int32 height

A reference to the buffer's height.

Int32 stride

A reference to the buffer's stride.

Returns
Type Description
IntPtr

A handle of buffer.

View Source

EnqueueBuffer(IntPtr)

Enqueue buffer to the queue.

Declaration
C#
Copy
public bool EnqueueBuffer(IntPtr buffer)
Parameters
Type Name Description
IntPtr buffer

A Handle of buffer to be enqueued.

Returns
Type Description
Boolean

True if success.

View Source

GenerateUrl()

Generate Url from native image queue.

Declaration
C#
Copy
public override ImageUrl GenerateUrl()
Returns
Type Description
ImageUrl

The ImageUrl of NativeImageQueue.

Overrides
Remarks

This API should not be called at worker thread.

View Source

ReleaseSwigCPtr(Runtime.InteropServices.HandleRef)

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type Name Description
Tizen.System.Runtime.InteropServices.HandleRef swigCPtr
Overrides

Extension Methods