This documentation is for the old version. Go to the latest Upload Suite docs

Thumbnail.BackgroundColor Property

Supported in: ActiveX , Java

Background color of this Thumbnail instance.

Syntax

Initialize

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
var tw = new ThumbnailWriter("ThumbnailID", 610, 500);
//...other params...
tw.addParam("BackgroundColor", "#ff7905");
//...other params...
tw.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getImageUploader("ThumbnailID").setBackgroundColor(value);
value = getImageUploader("ThumbnailID").getBackgroundColor();

Property Value

A color value specified as a hex representation of the RGB triad in HTML-style syntax (#rrggbb) or as a color name ("white" and so on) which specifies the background color of this Thumbnail control.

Note

See the full list of supported color names in MSDN. Pay attention that user-defined colors are not supported.

Default value is "#ff7905".