←Select platform

RasterSizeFlags Enumeration

Summary
Flags which control the behavior of image resize methods.
Syntax
C#
Objective-C
C++/CLI
Java
Python
[FlagsAttribute()] 
public enum RasterSizeFlags 
typedef NS_OPTIONS(NSUInteger, LTRasterSizeFlags) 
public final class RasterSizeFlags 
    extends java.lang.Enum<RasterSizeFlags> 
[FlagsAttribute()] 
public enum class RasterSizeFlags   
class RasterSizeFlags(Enum): 
   None = 0 
   FavorBlack = 1 
   Resample = 2 
   Bicubic = 4 
   ScaleToGray = 8 
   OldResample = 16 
   PremultiplyAlpha = 32 
Members
ValueMemberDescription
0x00000000None Resize normally
0x00000001FavorBlack (Document/Medical only) Preserve black objects when making the image smaller. This option affects only 1-bit, black-and-white images, where it prevents the disappearance of thin lines. You can use a bitwise OR ( ¦ ) to combine this flag with another one. For example, Resample | FavorBlack causes color images to be resampled, but applies the favor-black option to 1-bit, black-and-white images.If you apply this flag to an image that has more than 1 bit per pixel, then the behavior is undefined.
0x00000002Resample Use linear interpolation and averaging to produce a higher-quality image
0x00000004Bicubic Use bicubic interpolation and averaging to produce a higher quality image. This is slower than Resample
0x00000008ScaleToGray (Document/Medical only). Use interpolation to display black and white images using shades of gray when the image is resized. This improves the readability when the image is scaled up or down. The generated image is 8-bit grayscale, so this option should be used only for black and white images.
0x00000010OldResample Use the old resample algorithm from LEADTOOLS 14.5.
0x00000020PremultiplyAlpha Premultiply the alpha channel values when performing resize.
Requirements

Target Platforms

See Also

Reference

Leadtools Namespace

Help Version 22.0.2023.5.16
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.