ImageGear for .NET
DontScalePixels Field
See Also  Send Feedback
ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearScaleReductionOptions Class : DontScalePixels Field




Glossary Item Box

Set to true to avoid scaling the pixel values.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Field Value

Boolean value.

Remarks

In this case, the component values of each pixel will be preserved (within the limits of precision) even though their effective ranges may be different. For example, if you have a 16bpp grayscale image but each pixel value actually only ranges from 0-255, and you want 0 to represent black and 255 to represent white, it makes sense to set this option to true and avoid scaling the values. If scaling were used in such a case, the image would appear black since the brightest possible value (255) would be scaled down to almost nothing: (255/65535) * 255 = 1.

See Also

©2013. Accusoft Corporation. All Rights Reserved.