Click or drag to resize

PFFileGetThumbnail Method (Int32, Int32)

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(
	int width,
	int height
)

Parameters

width
Type: SystemInt32
The maximum width of the thumbnail
height
Type: SystemInt32
The maximum height of the thumbnail

Return Value

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