Class NativeImageQueue
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
NativeImageQueue is a class for displaying an image resource using queue.
C#Copypublic class NativeImageQueue : NativeImageInterface
- Inheritance
Examples
CopyNativeImageQueue 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#Copypublic 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
Declaration
C#Copypublic bool CanDequeueBuffer()
Returns
Type | Description |
---|---|
Boolean | True if the buffer can be got from the queue. |
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic bool EnqueueBuffer(IntPtr buffer)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | buffer | A Handle of buffer to be enqueued. |
Returns
Type | Description |
---|---|
Boolean | True if success. |
Declaration
C#Copypublic override ImageUrl GenerateUrl()
Returns
Type | Description |
---|---|
ImageUrl | The ImageUrl of NativeImageQueue. |
Overrides
Remarks
This API should not be called at worker thread.
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |