Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ForceSize Property
See Also 
Leadtools.Codecs Namespace > CodecsThumbnailOptions Structure : 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.

Syntax

Visual Basic (Declaration) 
Public Property ForceSize As Boolean
Visual Basic (Usage)Copy Code
Dim instance As CodecsThumbnailOptions
Dim value As Boolean
 
instance.ForceSize = value
 
value = instance.ForceSize
C# 
public bool ForceSize {get; set;}
C++/CLI 
public:
property bool ForceSize {
   bool get();
   void set (bool value);
}

Return 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.

Example

For an example, refer to RasterCodecs.ReadThumbnail.

Remarks

This parameter is ignored if MaintainAspectRatio is false.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also