iTextSharp.text.pdf.codec.GifImage.GetFrameCount C# (CSharp) Method

GetFrameCount() public method

public GetFrameCount ( ) : int
return int
        public int GetFrameCount()
        {
            return frames.Count;
        }

Usage Example

コード例 #1
0
// ---------------------------------------------------------------------------    
    public void AddGif(Document document, String path) {
      GifImage img = new GifImage(path);
      int n = img.GetFrameCount();
      for (int i = 1; i <= n; i++) {
        document.Add(img.GetImage(i));
      }
    }