Visual Basic (Declaration) | |
---|---|
Public Property UriOperationBufferSize As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As RasterCodecs Dim value As Integer instance.UriOperationBufferSize = value value = instance.UriOperationBufferSize |
C# | |
---|---|
public int UriOperationBufferSize {get; set;} |
Property Value
A value specifying the size of the buffer (in bytes) used in streaming operations. The value should be greater or equal to 1. Default value is 4096.The value of the UriOperationBufferSize property is used to determine the size of the temporary buffer used when streaming image file data using any of the URI-based load or information operations.
The following methods will use use the value of this property internally to allocate the temporary buffer:
- GetInformation(Uri, bool)
- GetInformation(Uri, bool, int)
- Load(Uri)
- Load(Uri, int, CodecsLoadByteOrder, int, int)
- LoadAsync(Uri uri, object userState)
- LoadAsync(Uri uri, int bitsPerPixel, CodecsLoadByteOrder order, int firstPage, int lastPage, object userState)
- LoadAsync(Uri uri, LeadRect tile, object userState)
- LoadAsync(Uri uri, LeadRect tile, int bitsPerPixel, CodecsLoadByteOrder order, int firstPage, int lastPage, object userState)
The default size of the buffer is 4096 (4 KBytes). This means that the RasterCodecs object will try to load the image data in 4 KBytes chunks of data.
Increasing the buffer size might enhance the performance while also increasing the amount of memory resources used.
Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)