public byte[] GenerateTile(string inputPath, int tz, int tx, int ty, bool retina, string inputPathHash) { try { return(DDBWrapper.GenerateMemoryTile(inputPath, tz, tx, ty, retina ? 512 : 256, true, false, inputPathHash)); } catch (DDBException ex) { throw new InvalidOperationException($"Cannot generate tile of '{inputPath}'", ex); } }