MediasClientGetGetPrintableScaled 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 image scaled to match submitted max width or max height converted to 300dpi.
If the image is smaller than the requested dimensions, the original image is returned.
Namespace: Anysense.API.Client.V1Assembly: Anysense.API.Client (in Anysense.API.Client.dll) Version: 1.31.15+d671d89394079ff2411e503098d3578f08c2de86
Syntax public FileResult GetGetPrintableScaled(
Guid mediaId,
decimal? maxHeight,
decimal? maxWidth,
PrintSizeUnit? unit,
Stream targetStream
)
Parameters
- mediaId Guid
- The id of the image to scale.
- maxHeight NullableDecimal
- The maxium allowed height of the returned image.
- maxWidth NullableDecimal
- The maxium allowed width of the returned image.
- unit NullablePrintSizeUnit
- The UnitType to use for scaling - centimeters or inches
- targetStream Stream
-
Return Value
FileResultSee Also