GetInformation(Uri,bool,int) Method (original) (raw)
Summary
Gets the specific image page information from the specified Uri.
Syntax
Parameters
uri
The Uri containing the input image data.
totalPages
true to query the URI for total number of pages; false, otherwise.
pageNumber
Page number in the URI to query.
Return Value
A CodecsImageInfo object that contains the information about the specified image.
Example
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
using Leadtools.Svg;
public void GetInformationUriExample()
{
RasterCodecs codecs = new RasterCodecs();
// Get Information on an image in an HTTP url
Uri uri = new Uri(@"https://www.leadtools.com/images/page_graphics/leadlogo.png");
CodecsImageInfo info = codecs.GetInformation(uri, true);
Debug.WriteLine("Information for: {0}", uri);
Debug.WriteLine("BitsPerPixel: {0}", info.BitsPerPixel);
Debug.WriteLine("BytesPerLine: {0}", info.BytesPerLine);
Debug.WriteLine("ColorSpace: {0}", info.ColorSpace.ToString());
Debug.WriteLine("Compression: {0}", info.Compression);
Debug.WriteLine("Format: {0}", info.Format);
// 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