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); }