Ejemplo n.º 1
0
        private FreeImageAlgorithmsBitmap TileImage(Tile tile)
        {
            FreeImageAlgorithmsBitmap fib = tile.LoadFreeImageBitmap();

            fib.ConvertToStandardType(true);
            if (!fib.IsGreyScale)
            {
                if (this.channel == FREE_IMAGE_COLOR_CHANNEL.FICC_RGB)
                {
                    fib.ConvertToGreyscale();
                }
                else
                {
                    fib.GetChannel(this.channel);
                }
            }

            return(fib);
        }