Indicates the default for ImgCrossOrigin.
ImageLoader.defaultImgCrossOrigin = (default value);
static defaultImgCrossOrigin: string;
A string indicating what the crossOrigin
attribute of the HTMLImageElement used in the request should be set to for new ImageLoader instances. The default value is 'anonymous'. Any string is acceptable, but other important values include 'use-credentials' and null.
This property is only useful with ImageLoaderUrlMode.ImageUrl. For ImageLoaderUrlMode.AjaxDataUrl or ImageLoaderUrlMode.AjaxXml, see DefaultAjaxWithCredentials and AjaxWithCredentials.
DefaultImgCrossOrigin is used to set the ImgCrossOrigin instance property for each new ImageLoader. The ImageLoader's ImgCrossOrigin value is the actual value used in setting the HTMLImageElement.crossOrigin
in the WorkingImageElement.
For more information, including a discussion of the effect of the different string values, see ImgCrossOrigin.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document