SetImageFromBuffer

Sets the image label from a memory buffer. See the C# and JavaScript examples below of how to create an image label from a buffer.

 

JavaScript

 

SetImageFromBuffer(

       Buffer,

       Width,

       Height)

 

C#

 

void SetImageFromBuffer (

       object        Buffer,

       int    Width,

       int    Height)

 

C++

 

HRESULT SetImageFromBuffer (    

       [in] VARIANT Buffer,

       [in] long    Width,

       [in] long    Height

 

Parameters

Buffer

The memory buffer that contains the label's image file.

Width

Width of the buffer.

Height

Height of the buffer.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.