AttachmentInfoProviderGetImageThumbnail Method (AttachmentInfo, String, Int32, Int32, Int32, Boolean) |
Returns image thumbnail (from the disk - if already exists, or create new one and save it to disk - if doesn't exist).
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax public static byte[] GetImageThumbnail(
AttachmentInfo atInfo,
string siteName,
int width,
int height,
int maxSideSize,
bool searchThumbnailFile = true
)
Parameters
- atInfo
- Type: CMS.DocumentEngineAttachmentInfo
Attachment info - siteName
- Type: SystemString
Site name - width
- Type: SystemInt32
Image width - height
- Type: SystemInt32
Image height - maxSideSize
- Type: SystemInt32
Maximum side size - searchThumbnailFile (Optional)
- Type: SystemBoolean
Indicates if thumbnail should be searched on the disk
Return Value
Type:
ByteSee Also