GraphicsFormats package for Buoy |

# RawIcoImporter.OpenFromFile Method

Opens a ICO Image from a file, reading the bitmap by given index from the ICO file.

OpenFromFile(
f as FileSystemItem,
directoryIndex as Integer) as RawBitmap

#### Parameters

f
  The FileSystemItem to open the image from.
directoryIndex
  Index of the Bitmap to read. (First bitmap is number zero). After you have read the first bitmap then you will have the LastDirectoryIndex property populated which will give you info of how many bitmaps are in the ICO file.

#### Returns

RawBitmap
  Returns the imported Picture as RawBitmap.

#### Remarks

#### See Also

RawIcoImporter Class