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 (24.3.0.1000)
Syntax Stream GetImageThumbnail(
Guid resourceId,
int? maxWidth,
int? maxHeight
)
Function GetImageThumbnail (
resourceId As Guid,
maxWidth As Integer?,
maxHeight As 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 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