Class PixelData
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 5
The PixelData object holds a pixel buffer.
The PixelData takes over the ownership of the pixel buffer.
The buffer memory must not be released outside of this class, instead,
the PixelData object will release it automatically when the reference count falls to zero.
C#Copypublic class PixelData : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic PixelData(byte[] buffer, uint bufferSize, uint width, uint height, PixelFormat pixelFormat)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The raw pixel data. |
UInt32 | bufferSize | The size of the buffer in bytes. |
UInt32 | width | Buffer width in pixels. |
UInt32 | height | Buffer height in pixels. |
PixelFormat | pixelFormat | The pixel format. |
API Level: 5
View Source
PixelData(Byte[], UInt32, UInt32, UInt32, PixelFormat, PixelData.ReleaseFunction)
Creates a PixelData object.
Declaration
C#Copypublic PixelData(byte[] buffer, uint bufferSize, uint width, uint height, PixelFormat pixelFormat, PixelData.ReleaseFunction releaseFunction)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | The raw pixel data. |
UInt32 | bufferSize | The size of the buffer in bytes. |
UInt32 | width | Buffer width in pixels. |
UInt32 | height | Buffer height in pixels. |
PixelFormat | pixelFormat | The pixel format. |
PixelData.ReleaseFunction | releaseFunction | The function used to release the memory. |
API Level: 5
Methods
Declaration
C#Copypublic ImageUrl GenerateUrl()
Returns
Type | Description |
---|---|
ImageUrl |
Remarks
This API should not be called at worker thread.
Declaration
C#Copypublic uint GetHeight()
Returns
Type | Description |
---|---|
UInt32 | The height of the buffer in pixels. |
API Level: 5
Declaration
C#Copypublic PixelFormat GetPixelFormat()
Returns
Type | Description |
---|---|
PixelFormat | The pixel format. |
API Level: 5
Declaration
C#Copypublic uint GetWidth()
Returns
Type | Description |
---|---|
UInt32 | The width of the buffer in pixels. |
API Level: 5
Declaration
C#Copyprotected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |