UriOperationBufferSize Property (original) (raw)

Summary

Gets or sets the size of the buffer used in URI-based load or information operations.

Syntax

C#

Objective-C

C++/CLI

Java

Python

public int UriOperationBufferSize { get; set; } 
@property (nonatomic, assign) NSUInteger uriOperationBufferSize; 

public int getUriOperationBufferSize() public void setUriOperationBufferSize(int value)

public: property int UriOperationBufferSize { int get(); void set ( int ); }

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.

Example

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(); }

Leadtools.Codecs Assembly

CompactFile(Stream,Stream,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(Stream,Stream,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

CompactFile(string,string,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(string,string,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

StartCompress(int,int,int,RasterByteOrder,RasterViewPerspective,int,byte[],int,int,CodecsCompression,CodecsCompressDataCallback) Method