Visual Basic (Declaration) | |
---|---|
Public Property LoadThenResize As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool LoadThenResize {get; set;} |
Return Value
true to load the image entirely before resizing, false, otherwise. The default value is false.Note: The restriction on using portions of LEADTOOLS inside ASP.NET applications has been removed starting with LEADTOOLS 16.5.
The RasterCodecs object has the following methods that allows you to resize an image while it is being loaded:
Load(string fileName, int width, int height, int bitsPerPixel, RasterSizeFlags flags, CodecsLoadByteOrder order) Load(string fileName, int width, int height, int bitsPerPixel, RasterSizeFlags flags, CodecsLoadByteOrder order, int firstPage, int lastPage)
This method works by resizing the image while it is being loaded using an internal thread. To disable this behavior, you can set the value of the LoadThenResize property to true to completely load an image before resizing it.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family