AutoResizeConfiguration Constructor (UInt32, Size, Size, AutoResizeMode, Double, ColorSpace)

Creates a new resize configuration object for the JpegTools.

Namespace: Lumia.Imaging
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255

Lumia.Imaging.AutoResizeConfiguration = function(maxBufferSize, maxImageSize, minImageSize, resizeMode, minEncodingQuality, colorSpacing);

Parameters

maxBufferSize
Type: System.UInt32
Maximum output buffer size in bytes.
maxImageSize
Type: Windows.Foundation.Size

Maximum image size to achieve. The rendered image will fit within this outer bounding box when allowing for rotation. The size must be larger than minImageSize. A maxImageSize of {640, 480} will, for the following different source image sizes, give this maximum size:

{1024, 1024} will be at most {480, 480}

{1280, 640} will be at most {640, 320}

{640, 1280} will be at most {320, 640}

minImageSize
Type: Windows.Foundation.Size

Minimum image size to achieve. The rendered image will be at least as large as this size in at least one dimension. The size must be smaller than maxImageSize. A minImageSize of {160, 120} will, for the following different source image sizes, give this minimum size:

{1024, 1024} will be at least {120, 120}

{1280, 640} will be at least {160, 80}

{640, 1280} will be at least {80, 160}

resizeMode
Type: Lumia.Imaging.AutoResizeMode
One of the AutoResizeModes.
minEncodingQuality
Type: System.Double
The lowest desired encoding quality. Must be in the range [0.0, 1.0]
colorSpacing
Type: Lumia.Imaging.ColorSpace
Color spacing will affect how the color channels are sub-sampled when encoding the JPEG file. Sub-sampling of the color channels will reduce the resulting file size. YUV 4:2:0 color spacing is recommended for achieving the lowest file size.

Lumia Imaging SDK

Supported in: 3.0, 2.0
Show: