ImageUtilsGenerateThumbnail Method |
Generate a thumbnail from an image stream.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static byte[] GenerateThumbnail(
IAppContext cxt,
Stream image,
ImageFileFormat format,
ImageFileQuality quality,
ImageFileSize size
)
Public Shared Function GenerateThumbnail (
cxt As IAppContext,
image As Stream,
format As ImageFileFormat,
quality As ImageFileQuality,
size As ImageFileSize
) As Byte()
Parameters
- cxt
- Type: NetQuarryIAppContext
The application context. - image
- Type: System.IOStream
The image to from which to generate a thumbnail. - format
- Type: NetQuarry.Util.ImageImageFileFormat
The thumbnail format to generate. - quality
- Type: NetQuarry.Util.ImageImageFileQuality
The quality of the thumbnail. - size
- Type: NetQuarry.Util.ImageImageFileSize
The size of the quality.
Return Value
Type:
ByteThe thumbnail image data.
See Also