Einhugur macOS Bridge plugin. |

# NSImage.FromFile Method

Loads image from contents of a file.

shared FromFile(
f as FolderItem,
lazy as Boolean) as EinhugurMacOSBridge.NSImage

#### Parameters

f
  The file to load image from.
lazy
  If set to true, then image is lazy loaded, that is won’t be loaded right away but will load when it’s drawn for first time. This parameter is optional and default value is false.

#### Returns

EinhugurMacOSBridge.NSImage

#### Remarks

Note that on lazy loaded image then fail or not fail is only evaluated by the file ending given by the file.

#### See Also

NSImage Class