Visual Basic (Declaration) | |
---|---|
Public Property LoadThenResize As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As RasterCodecs Dim value As Boolean instance.LoadThenResize = value value = instance.LoadThenResize |
C# | |
---|---|
public bool LoadThenResize {get; set;} |
Property 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: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)