Image from the web URL can be used in the same way as that of the image from the local disk (See: Use Image From Local Disk ) except that the path of the image file in ImageInfo.File property is replaced by the web URL of the image like the code snippet given below:
Code Snippet
[C#]
...
//Set the path of image file
image1.ImageInfo.File = "http://www.aspose.com/Images/Apple.jpg";
//Set the type of image using ImageFileType enumeration
image1.ImageInfo.ImageFileType = ImageFileType.Jpeg;
//Set image title
image1.ImageInfo.Title = "JPEG image";
...
[VB.NET]
...
'Set the path of image file
image1.ImageInfo.File = "http://www.aspose.com/Images/Apple.jpg"
'Set the type of image using ImageFileType enumeration
image1.ImageInfo.ImageFileType = ImageFileType.Jpeg
'Set image title
image1.ImageInfo.Title = "JPEG image"
...
[JAVA]
...
//Set the path of image file
image1.getImageInfo().setFile("http://www.aspose.com/Images/Apple.jpg ");
//Set image title
image1.getImageInfo().setTitle("JPEG image");
...