/// <summary> /// Create the file image. /// </summary> /// <param name="filePath">The path of the image file.</param> /// <param name="hoverImage">The image to display when hovering over the image.</param> /// <param name="quality">The quality of the image.</param> public FileSpriteImage(FileInfo filePath, IHoverImage hoverImage, int quality) { Resize = false; FilePath = filePath; HoverImage = hoverImage; Quality = quality; }
/// <summary> /// Create the file image. /// </summary> /// <param name="filePath">The path of the image file.</param> /// <param name="hoverImage">The image to display when hovering over the image.</param> public FileSpriteImage(FileInfo filePath, IHoverImage hoverImage) { Resize = false; FilePath = filePath; HoverImage = hoverImage; Quality = 100; }
/// <summary> /// Create the file image. /// </summary> /// <param name="filePath">The path of the image file.</param> /// <param name="placeholderImageKey">The key of the placeholder image to use when image data is null.</param> /// <param name="hoverImage">The image to display when hovering over the image.</param> /// <param name="quality">The quality of the image.</param> public FileSpriteImage(FileInfo filePath, string placeholderImageKey, IHoverImage hoverImage, int quality) { FilePath = filePath; PlaceholderImageKey = placeholderImageKey; HoverImage = hoverImage; Resize = false; Quality = quality; }
/// <summary> /// Create the byte array image. /// </summary> /// <param name="key">The ID of the HTML element in which to display the image.</param> /// <param name="imageData">The image data.</param> /// <param name="hoverImage">The image to display when hovering over the image.</param> /// <param name="quality">The quality of the image.</param> // ReSharper disable once UnusedMember.Global public ByteArraySpriteImage(string key, byte[] imageData, IHoverImage hoverImage, int quality) { Key = key; ImageData = imageData; HoverImage = hoverImage; Resize = false; Quality = quality; }
/// <summary> /// Create the file image. /// </summary> /// <param name="filePath">The path of the image file.</param> /// <param name="resizeToHeight">The height in pixels to resize the image to.</param> /// <param name="resizeToWidth">The width in pixels to resize the image to.</param> /// <param name="hoverImage">The image to display when hovering over the image.</param> /// <param name="quality">The quality of the image.</param> public FileSpriteImage(FileInfo filePath, int resizeToHeight, int resizeToWidth, IHoverImage hoverImage, int quality) { Resize = true; FilePath = filePath; ResizeToHeight = resizeToHeight; ResizeToWidth = resizeToWidth; HoverImage = hoverImage; Quality = quality; }
/// <summary> /// Create the byte array image. /// </summary> /// <param name="key">The ID of the HTML element in which to display the image.</param> /// <param name="imageData">The image data.</param> /// <param name="placeholderImageKey">The key of the placeholder image to use when image data is null.</param> /// <param name="hoverImage">The image to display when hovering over the image.</param> // ReSharper disable once UnusedMember.Global public ByteArraySpriteImage(string key, byte[] imageData, string placeholderImageKey, IHoverImage hoverImage) { Key = key; ImageData = imageData; PlaceholderImageKey = placeholderImageKey; HoverImage = hoverImage; Resize = false; Quality = 100; }
/// <summary> /// Create the file image. /// </summary> /// <param name="filePath">The path of the image file.</param> /// <param name="placeholderImageKey">The key of the placeholder image to use when image data is null.</param> /// <param name="resizeToHeight">The height in pixels to resize the image to.</param> /// <param name="resizeToWidth">The width in pixels to resize the image to.</param> /// <param name="hoverImage">The image to display when hovering over the image.</param> /// <param name="quality">The quality of the image.</param> public FileSpriteImage(FileInfo filePath, string placeholderImageKey, int resizeToHeight, int resizeToWidth, IHoverImage hoverImage, int quality) { Resize = true; FilePath = filePath; PlaceholderImageKey = placeholderImageKey; ResizeToHeight = resizeToHeight; ResizeToWidth = resizeToWidth; HoverImage = hoverImage; Quality = quality; }
/// <summary> /// Create the byte array image. /// </summary> /// <param name="key">The ID of the HTML element in which to display the image.</param> /// <param name="imageData">The image data.</param> /// <param name="resizeToHeight">The height in pixels to resize the image to.</param> /// <param name="resizeToWidth">The width in pixels to resize the image to.</param> /// <param name="hoverImage">The image to display when hovering over the image.</param> /// <param name="quality">The quality of the image.</param> // ReSharper disable once UnusedMember.Global public ByteArraySpriteImage(string key, byte[] imageData, int resizeToHeight, int resizeToWidth, IHoverImage hoverImage, int quality) { Key = key; ImageData = imageData; Resize = true; ResizeToHeight = resizeToHeight; ResizeToWidth = resizeToWidth; HoverImage = hoverImage; Quality = quality; }
/// <summary> /// Create the byte array image. /// </summary> /// <param name="key">The ID of the HTML element in which to display the image.</param> /// <param name="imageData">The image data.</param> /// <param name="placeholderImageKey">The key of the placeholder image to use when image data is null.</param> /// <param name="resizeToHeight">The height in pixels to resize the image to.</param> /// <param name="resizeToWidth">The width in pixels to resize the image to.</param> /// <param name="hoverImage">The image to display when hovering over the image.</param> // ReSharper disable once UnusedMember.Global public ByteArraySpriteImage(string key, byte[] imageData, string placeholderImageKey, int resizeToHeight, int resizeToWidth, IHoverImage hoverImage) { Key = key; ImageData = imageData; PlaceholderImageKey = placeholderImageKey; Resize = true; ResizeToHeight = resizeToHeight; ResizeToWidth = resizeToWidth; HoverImage = hoverImage; Quality = 100; }