private static string GetFormat(XpoUrlImageTypes imageType) { switch (imageType) { case XpoUrlImageTypes.Bmp: return "bmp"; case XpoUrlImageTypes.Jpg: return "jpg"; case XpoUrlImageTypes.Png: return "png"; default: return "jpg"; } }
private static string GetFormat(XpoUrlImageTypes imageType) { switch (imageType) { case XpoUrlImageTypes.Bmp: return("bmp"); case XpoUrlImageTypes.Jpg: return("jpg"); case XpoUrlImageTypes.Png: return("png"); default: return("jpg"); } }
/// <summary> /// Sets the ouput image type for this URL /// </summary> /// <param name="type">the type of the output image</param> public IFluentXpoUrlGenerator SetImageType(XpoUrlImageTypes type) { EnsureUrlType <XpoImageUrlRequest>(request).ImageType = type; return(this); }