public int UriOperationBufferSize { get; set; }
@property (nonatomic, assign) NSUInteger uriOperationBufferSize;
public int getUriOperationBufferSize()
public void setUriOperationBufferSize(int value)
UriOperationBufferSize # get and set (RasterCodecs)
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 use the value of this property internally to allocate the temporary buffer:
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.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
using Leadtools.Svg;
public void LoadUri1Example()
{
RasterCodecs codecs = new RasterCodecs();
Uri uri = new Uri(@"https://www.leadtools.com/images/page_graphics/leadlogo.png");
RasterImage image = codecs.Load(uri);
codecs.UriOperationBufferSize = 4096;
// Show information about the image
Debug.WriteLine("Size: {0} by {1} pixels", image.Width, image.Height);
Debug.WriteLine("Bits/Pixel: {0}", image.BitsPerPixel);
image.Dispose();
// Clean up
codecs.Dispose();
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document