Click or drag to resize

PFFileGetThumbnail Method (Size)

Creates a png thumbnail of the file if content is loaded and processable. Image (jpg,tiff,bmp,png), Word 2010 (docx,docm) files are processed. Keeps proportions. Throws NotImplementedException if generation not supported for file. Throws ObjectNotFoundException if file content was not loaded.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public byte[] GetThumbnail(
	Size size
)

Parameters

size
Type: System.DrawingSize
The maximum width or heidht of the thumbnail.

Return Value

Type: Byte
A png thumbnail of the file.
See Also