I am creating a SharePoint list with C# and have created a "Hyperlink or Picture" field like so:
myList.Fields.add("Icon", SPFieldType.URL, true);
when I add an item to the list in SharePoint this field is displayed as a hyperlink. By editing the list settings in SharePoint, I can change the "Format URL as" option from "Hyperlink" to "Picture" and it works as desired.
How can I set the field to display as picture when creating the field programmatically?