←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
Java
Objective-C
WinRT C#
C++
public bool ForceSize {get; set;} 
Public Property ForceSize As Boolean 
public bool ForceSize {get; set;} 
@property (nonatomic, assign) BOOL forceSize 
public boolean getForceSize() 
public void setForceSize(boolean value) 
             
  
get_ForceSize(); 
set_ForceSize(value); 
Object.defineProperty('ForceSize');  
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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Codecs Assembly
Click or drag to resize