Click or drag to resize

MediasClientGetThumbnailAsync(Guid, Int32, Int32, Stream) Method

To get started, call one of the following methods:
  • Anysense.API.Client.V1.ApiClient.Create
  • Anysense.API.Client.V1.ApiClient.CreateAsync
  • Anysense.API.Client.V1.ApiClient.CreateWithToken
  • Anysense.API.Client.V1.ApiClient.CreateWithTokenAsync
See Anysense.API.Client.Shared.BaseClient<T> for documentation on these methods.
Gets an thumbnail of a media scaled to match submitted max width or max height. If the media is an image and the image is smaller than the requested dimensions, the original image is returned. If anything else than an image is requested, the service returns a standard thumbnail matching the requested dimensions.

Namespace: Anysense.API.Client.V1
Assembly: Anysense.API.Client (in Anysense.API.Client.dll) Version: 1.31.15+d671d89394079ff2411e503098d3578f08c2de86
Syntax
C#
public Task<FileResult> GetThumbnailAsync(
	Guid mediaId,
	int maxHeight,
	int maxWidth,
	Stream targetStream
)

Parameters

mediaId  Guid
The id of the media to get thumbail for.
maxHeight  Int32
The maxium allowed height of the returned image.
maxWidth  Int32
The maxium allowed width of the returned image.
targetStream  Stream
 

Return Value

TaskFileResult
See Also