This service provides a method of accessing an image directly (avoiding the need for the PictureItem).

 

All calls are relative to the path

http://computerName:port/MediaBrowserService/directimage

 

    public interface IDirectImages
    {
        /// <summary>
        /// Gets an image directly (bypasses the PictureItem object)
        /// </summary>
        /// <param name="id">The id of the item</param>
        /// <param name="imageType">Type of image</param>
        /// <param name="maxHeight">Max height of the image (optional)</param>
        /// <param name="maxWidth">Max width of the image (optional)</param>
        /// <returns></returns>
        UriTemplate = "?id={id}&imagetype={imageType}&maxheight={maxHeight}&maxwidth={maxWidth}"
        Stream GetDirectImage(Guid id, ImageTypes imageType, int maxHeight, int maxWidth);
    }

Last edited Sep 2, 2010 at 5:49 PM by evorgevol, version 2

Comments

No comments yet.