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#
Copy
public class PixelData : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
Inheritance
Implements

Constructors

View Source

PixelData(Byte[], UInt32, UInt32, UInt32, PixelFormat)

Creates a PixelData object.

Declaration
C#
Copy
public 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#
Copy
public 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

View Source

GenerateUrl()

Generate Url from pixel data.

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

This API should not be called at worker thread.

View Source

GetHeight()

Gets the height of the buffer in pixels.

Declaration
C#
Copy
public uint GetHeight()
Returns
Type Description
UInt32

The height of the buffer in pixels.

API Level: 5
View Source

GetPixelFormat()

Gets the pixel format.

Declaration
C#
Copy
public PixelFormat GetPixelFormat()
Returns
Type Description
PixelFormat

The pixel format.

API Level: 5
View Source

GetWidth()

Gets the width of the buffer in pixels.

Declaration
C#
Copy
public uint GetWidth()
Returns
Type Description
UInt32

The width of the buffer in pixels.

API Level: 5
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

Implements

Extension Methods