<p>I want to load 52 images (deck of cards) in gif format from my recourse folder into an Image[] in c#. Any ideas?</p>

<p>Thanks,
Jon</p>

You can read a Bitmap from a file like this;
```
```
public static Bitmap GetBitmap( string filename )
  {
     Bitmap retBitmap = null;
     string path = String.Concat( BitmapDir, filename );
     if ( File.Exists( path ) )
     {
        try
        {
           retBitmap = new Bitmap( path, true );
        }
        catch { }
     }
     return retBitmap;
  }
```
```
You can get a list of files in a resource directory like this;
```
```
string[] files = Directory.GetFiles( BitmapDir, "*.gif" );
```
```
Just iterate through files calling GetBitmap( file ) and populate your array. BitmapDir is obviously the directory where your GIF files live.