ResourceController.GetImageThumbnail Method |
Gets the thumbnail for the specified image as a file.
Namespace:
Dundas.BI.WebApi.Controllers
Assembly:
Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntax[HttpGetAttribute("ImageThumbnailFile/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
public ActionResult GetImageThumbnail(
Guid id,
int? maxWidth = null,
int? maxHeight = null,
Guid? sessionId = null
)
<HttpGetAttribute("ImageThumbnailFile/{id}")>
<ProducesResponseTypeAttribute(403)>
<ProducesResponseTypeAttribute(405)>
<ProducesResponseTypeAttribute(410)>
<ProducesResponseTypeAttribute(440)>
Public Function GetImageThumbnail (
id As Guid,
Optional maxWidth As Integer? = Nothing,
Optional maxHeight As Integer? = Nothing,
Optional sessionId As Guid? = Nothing
) As ActionResult
public:
[HttpGetAttribute(L"ImageThumbnailFile/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
ActionResult^ GetImageThumbnail(
Guid id,
Nullable<int> maxWidth = nullptr,
Nullable<int> maxHeight = nullptr,
Nullable<Guid> sessionId = nullptr
)
[<HttpGetAttribute("ImageThumbnailFile/{id}")>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(405)>]
[<ProducesResponseTypeAttribute(410)>]
[<ProducesResponseTypeAttribute(440)>]
member GetImageThumbnail :
id : Guid *
?maxWidth : Nullable<int> *
?maxHeight : Nullable<int> *
?sessionId : Nullable<Guid>
(* Defaults:
let _maxWidth = defaultArg maxWidth null
let _maxHeight = defaultArg maxHeight null
let _sessionId = defaultArg sessionId null
*)
-> ActionResult
Parameters
- id
- Type: System.Guid
The ID of the image resource. - maxWidth (Optional)
- Type: System.Nullable<Int32>
The maximum width, if any. - maxHeight (Optional)
- Type: System.Nullable<Int32>
The maximum height, if any. - sessionId (Optional)
- Type: System.Nullable<Guid>
The ID of the session.
Return Value
Type:
ActionResultThe requested data as a byte stream.
See Also