Class EncodedImageBuffer

Definition

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

Class for Encoded Image Buffer. Buffer comes from System.IO.Stream. This data will decode internally when you use GeneratedUrl as View's ResourceUrl. Note: This class doesn't allow to fix/change anything. Only constructor allow to setup data.

C#
Copy
public class EncodedImageBuffer : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
Inheritance
Implements
Remarks

Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.

Constructors

View Source

EncodedImageBuffer(IO.Stream)

Constructor.

Declaration
C#
Copy
public EncodedImageBuffer(IO.Stream stream)
Parameters
Type Name Description
Tizen.System.IO.Stream stream

The Stream of the image file.

Remarks

Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.

View Source

EncodedImageBuffer(IO.Stream, EncodedImageBuffer.ImageTypes)

Constructor with image type.

Declaration
C#
Copy
public EncodedImageBuffer(IO.Stream stream, EncodedImageBuffer.ImageTypes imageType)
Parameters
Type Name Description
Tizen.System.IO.Stream stream

The Stream of the image file.

EncodedImageBuffer.ImageTypes imageType

The type of the image stream.

Remarks

Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.

Properties

View Source

ImageType

The type of image for this EncodedImageBuffer.

Declaration
C#
Copy
public EncodedImageBuffer.ImageTypes ImageType { get; set; }
Property Value
Type Description
EncodedImageBuffer.ImageTypes
Remarks

Hidden API: Only for inhouse or developing usage. The behavior and interface can be changed anytime.

Methods

View Source

Dispose(DisposeTypes)

Dispose

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type
Overrides
View Source

GenerateUrl()

Generate URI from current buffer. We can now use this url for ImageView.ResourceUrl Note : the url lifecycle is same as ImageUrl and it's internal usage. Store only ImageUrl.ToString() result and re-use that url is Undefined Behavior.

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

This API should not be called at worker thread.

View Source

ReleaseSwigCPtr(HandleRef)

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(HandleRef swigCPtr)
Parameters
Type Name Description
HandleRef swigCPtr

Implements

Extension Methods