2016-04-01 15 views

答えて

0
Image img = Image.FromFile(Variables.collection[imgNo].ToString()); 
    int pa = img.GetFrameCount(System.Drawing.Imaging.FrameDimension.Page); 

    for (int x = 0; x < pa; x++) 
    { 
     numpages.Text = pa.ToString(); 
     current.Text = (pa).ToString(); 

     int activepage = x + 1; 
     img.SelectActiveFrame(System.Drawing.Imaging.FrameDimension.Page, x); 
     pictureBox1.Image = img; 
     pictureBox1.Image.SelectActiveFrame(System.Drawing.Imaging.FrameDimension.Page, x); 
     pictureBox1.Refresh(); 
    } 
関連する問題