TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
bool ResourceCreate ( string  resource_name,
int[]  data,
uint  img_width,
uint  img_height,
uint  data_xoffset,
uint  data_yoffset,
uint  data_width,
int  color_format 
)

Creates a resource based on the array of pixels

Parameters
resource_nameResource name
dataA one-dimensional array for creating a complete image.
img_widthThe width of the rectangular image area in pixels to be placed in the resource in the form of an image. It cannot be greater than the data_width value.
img_heightThe height of the rectangular image area in pixels to be placed in the resource in the form of an image.
data_xoffsetThe horizontal rightward offset of the rectangular area of the image.
data_yoffsetThe vertical downward offset of the rectangular area of the image.
data_widthreserved
color_formatreserved
Returns
Returns true if successful, otherwise false. To get information about the error call the GetLastError() function.