BitMiracle.LibTiff.Classic.TiffCodec.DefTileSize C# (CSharp) Метод

DefTileSize() публичный Метод

Calculate and/or constrains a tile size
public DefTileSize ( int &width, int &height ) : void
width int The proposed tile width upon the call / tile width to use after the call.
height int The proposed tile height upon the call / tile height to use after the call.
Результат void
        public virtual void DefTileSize(ref int width, ref int height)
        {
            if (width < 1)
                width = 256;

            if (height < 1)
                height = 256;

            // roundup to a multiple of 16 per the spec
            if ((width & 0xf) != 0)
                width = Tiff.roundUp(width, 16);

            if ((height & 0xf) != 0)
                height = Tiff.roundUp(height, 16);
        }