IResourceFileServiceGetImageThumbnail Method |
Gets a stream providing a thumbnail of an image.
Namespace:
Dundas.BI.FileSystem
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (8.0.2.1001)
SyntaxStream GetImageThumbnail(
Guid resourceId,
Nullable<int> maxWidth,
Nullable<int> maxHeight
)
Function GetImageThumbnail (
resourceId As Guid,
maxWidth As Nullable(Of Integer),
maxHeight As Nullable(Of Integer)
) As Stream
Stream^ GetImageThumbnail(
Guid resourceId,
Nullable<int> maxWidth,
Nullable<int> maxHeight
)
abstract GetImageThumbnail :
resourceId : Guid *
maxWidth : Nullable<int> *
maxHeight : Nullable<int> -> Stream
Parameters
- resourceId
- Type: SystemGuid
The ID of the image resource. - maxWidth
- Type: SystemNullableInt32
The maximum width of the thumbnail, or if there is no width restriction. - maxHeight
- Type: SystemNullableInt32
The maximum height of the thumbnail, or if there is no height restriction.
Return Value
Type:
StreamA stream providing a thumbnail of the image in PNG format.
Exceptions| Exception | Condition |
|---|
| ArgumentException | resourceId is Empty. |
| ArgumentOutOfRangeException | maxWidth or maxHeight is less than or equal to zero.
|
| InvalidOperationException | resourceId corresponds to an entry which is not an image resource. |
| NotFoundException | The resource with the specified ID does not exist. |
| NoPrivilegeException | The caller does not have the Read privilege on the image resource. |
| InvalidSessionException | The caller context is not associated with a valid session. |
Remarks Caution |
|---|
|
The stream returned by this method must be disposed before any further database access occurs on the calling thread.
|
If both maxWidth and maxHeight are , the original
image is returned unaltered.
See Also