예제 #1
0
    public IEnumerator LoadTifPages(string imagePath, List <Image> tifImages)
    {
        Debug.Log("Loading Image As Textures: " + imagePath);

        TiffImage loadedTiff = new TiffImage(imagePath);

        yield return(null);

        Debug.LogFormat("Getting individual tif pages from {0}", imagePath);

        for (int i = 0; i < loadedTiff.PageCount; i++)
        {
            tifImages.Add(loadedTiff.GetTiffSpecificPage(i));

            Debug.LogFormat("Loaded page {0} of the tif {1}", i, imagePath);

            yield return(null);
        }
    }