Click or drag to resize
AttachmentBinaryHelperGetImageThumbnailInternal Method (DocumentAttachment, 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: 13.0.131
Syntax
C#
protected virtual byte[] GetImageThumbnailInternal(
	DocumentAttachment attachment,
	int width,
	int height,
	int maxSideSize,
	bool searchThumbnailFile
)

Parameters

attachment
Type: CMS.DocumentEngineDocumentAttachment
Document attachment.
width
Type: SystemInt32
Image width.
height
Type: SystemInt32
Image height.
maxSideSize
Type: SystemInt32
Maximum side size.
searchThumbnailFile
Type: SystemBoolean
Indicates if thumbnail should be searched on the disk.

Return Value

Type: Byte
See Also