←Select platform

ForceSize Property

Summary

Gets or sets a value which indicates whether the generated thumbnail should be forced to the requested size, even if MaintainAspectRatio is set to true.

Syntax
C#
VB
Objective-C
C++
Java
public bool ForceSize { get; set; } 
Public Property ForceSize As Boolean 
@property (nonatomic, assign) BOOL forceSize 
public boolean getForceSize() 
public void setForceSize(boolean value) 
public: 
property bool ForceSize { 
   bool get(); 
   void set (    bool ); 
} 

Property Value

true to indicate that the thumbnail image will be generated by creating a "canvas" image with the requested size, and then centering the actual image inside that image. Note this is a slower process.

Remarks

This parameter is ignored if MaintainAspectRatio is false.

Example

For an example, refer to RasterCodecs.ReadThumbnail.

Requirements

Target Platforms

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

Leadtools.Codecs Assembly