示例#1
0
 private void DisplayPicSet(int i)
 {
     ic.SetGen(i - iCurPic); //Set generation
     ic.Rinse(3, ImageCollection.imType.Resized);
     for (int a = 0; a < 3; a++)
     {
         if (id.Length > i + a)
         {
             ic.Add(id[i + a].sHash, id[i + a].sPath,
                    +a, ImageCollection.imType.Resized);
         }
         if (i - a >= 0)
         {
             ic.Add(id[i - a].sHash, id[i - a].sPath,
                    -a, ImageCollection.imType.Resized);
         }
     }
     iCurPic    = i;       //Set new opened image
     bSetNewPic = true;    //We need to update display
     if (!DisplayPicSet()) //Image not in bm cache
     {
         ic.Prio(id[i].sHash, ImageCollection.imType.Resized);
         ic.Load();         //Prioritize and init load of opened image
     }
     pbDisp.Visible = true; //We are displaying an image
     ShowPanel(pnDisp);     //Show display in GUI
 }