Click or drag to resize
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.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
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: Byte
See Also