Class PixelData

    Definition

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

    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.

    public class PixelData : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    PixelData
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Constructors

    View Source

    PixelData(byte[], uint, uint, uint, PixelFormat, ReleaseFunction)

    Creates a PixelData object.

    Declaration
    public PixelData(byte[] buffer, uint bufferSize, uint width, uint height, PixelFormat pixelFormat, PixelData.ReleaseFunction _)
    Parameters
    Type Name Description
    byte[] buffer

    The raw pixel data.

    uint bufferSize

    The size of the buffer in bytes.

    uint width

    Buffer width in pixels.

    uint height

    Buffer height in pixels.

    PixelFormat pixelFormat

    The pixel format.

    PixelData.ReleaseFunction _

    Not used parameter.

    View Source

    PixelData(byte[], uint, uint, uint, PixelFormat)

    Creates a PixelData object.

    Declaration
    public PixelData(byte[] buffer, uint bufferSize, uint width, uint height, PixelFormat pixelFormat)
    Parameters
    Type Name Description
    byte[] buffer

    The raw pixel data.

    uint bufferSize

    The size of the buffer in bytes.

    uint width

    Buffer width in pixels.

    uint height

    Buffer height in pixels.

    PixelFormat pixelFormat

    The pixel format.

    Methods

    View Source

    GenerateUrl()

    Generate Url from pixel data.

    Declaration
    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
    public uint GetHeight()
    Returns
    Type Description
    uint

    The height of the buffer in pixels.

    View Source

    GetPixelFormat()

    Gets the pixel format.

    Declaration
    public PixelFormat GetPixelFormat()
    Returns
    Type Description
    PixelFormat

    The pixel format.

    View Source

    GetWidth()

    Gets the width of the buffer in pixels.

    Declaration
    public uint GetWidth()
    Returns
    Type Description
    uint

    The width of the buffer in pixels.

    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    BaseHandle.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX