LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

ForceSize Property






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. .NET support WinRT support Silverlight support
Syntax
public bool ForceSize {get; set;}
'Declaration
 
Public Property ForceSize As Boolean
'Usage
 
Dim instance As CodecsThumbnailOptions
Dim value As Boolean
 
instance.ForceSize = value
 
value = instance.ForceSize
public bool ForceSize {get; set;}
 get_ForceSize();
set_ForceSize(value);
public:
property bool ForceSize {
   bool get();
   void set (    bool value);
}

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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CodecsThumbnailOptions Structure
CodecsThumbnailOptions Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.