|
[C#]
XImageLoadOptions loadOptions = new XImageLoadOptions();
loadOptions.ReadExif = true;
XImage image = XImage.FromFile(Server.MapPath("rez/myexif.jpg"), loadOptions);
if (image.Exif != null) {
string text = image.Exif.Text;
Response.Write(text);
}
[Visual Basic]
Dim loadOptions As New XImageLoadOptions()
loadOptions.ReadExif = True
Dim image As XImage = XImage.FromFile(Server.MapPath("rez/myexif.jpg"), loadOptions)
If image.Exif IsNot Nothing Then
Dim text As String = image.Exif.Text
Response.Write(text)
End If
This example illustrates how to get and display a formatted text
representation of the Exif data
|