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

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

ModuleType

Example

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

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


[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())
canvas.SaveAs(Server.MapPath("XImage_Modules_87.png"))