Thread: Image Explorer
View Single Post
  #4 (permalink)  
Old 05-03-2007, 09:24 AM
Erel's Avatar
Erel Erel is offline
Administrator
 
Join Date: Apr 2007
Posts: 3,335
Default

I agree with you that there are cases when it is better to "pull" a specifc image from file. However for a card game you could load all the images to an ImageList and then use ImageList.Item to retreive the specific image.

You could use BinaryFile.ReadInt64 and see if the value is a positive (not too big) number. Afterwards you will need to return the file position 8 bytes backwards.
Reply With Quote