Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
ForceSize Property
See Also 
Leadtools.Codecs Namespace > CodecsThumbnailOptions Structure : ForceSize Property



Gets or sets a value indicating whether the generated thumbnail should be forced to the requested size.

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 if generated thumbnail should be forced to the requested size; otherwise, false.

Example

For an example, refer to RasterCodecs.ReadThumbnail.

Remarks

If ForceSize is true, 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. This parameter is ignored if MaintainAspectRatio is false.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also