Type Default Value Read Only Static Description
List<ModuleType> No modules. No No The modules to be used for loading the image.

ImageGlue operates on a waterfall model. Processing is attempted with successive modules until one is found that supports the specific image.

You can use this property to control exactly which modules will be used to load the image.

If you do not specify any modules, a set of predefined modules will be used depending on the image type.

See Also



Here we load a jpg image using only Microsoft Modules: GDI and WIC.

[C#]Canvas canvas = new Canvas();
XImageLoadOptions.ModuleType[] modules = {
XImageLoadOptions loadOptions = new XImageLoadOptions(modules);
XImage image = XImage.FromFile(Server.MapPath("rez/main.jpg"), loadOptions);
canvas.DrawImage(image, new DrawOptions());

[Visual Basic]Dim canvas As New Canvas()
Dim modules As XImageLoadOptions.ModuleType() = {XImageLoadOptions.ModuleType.Gdi, XImageLoadOptions.ModuleType.Wic}
Dim loadOptions As New XImageLoadOptions(modules)
Dim image As XImage = XImage.FromFile(Server.MapPath("rez/main.jpg"), loadOptions)
canvas.DrawImage(image, New DrawOptions())