Provides information for the RasterCodecs.LoadImage event.
public class CodecsLoadImageEventArgs : System.EventArgs Public Class CodecsLoadImageEventArgsInherits System.EventArgs
public sealed class CodecsLoadImageEventArgs : System.EventArgs @interface LTCodecsLoadImageEventArgs : NSObject public class CodecsLoadImageEvent extends LeadEvent function Leadtools.Codecs.CodecsLoadImageEventArgs() public ref class CodecsLoadImageEventArgs : public System.EventArgs To understand the various page and percentages, consider the following example.
File Ocr.tif is a multi-page TIF file containing 4 pages. We want to load pages 2 through 4 (a total of 3 pages). We make the following call:
private RasterImage Test(RasterCodecs rasterCodecsObject){// Subscribe to the LoadImage eventrasterCodecsObject.LoadImage += new EventHandler<CodecsLoadImageEventArgs>(rasterCodecsObject_LoadImage);// Load pages 2 through 4 (total of 3 pages)RasterImage image = rasterCodecsObject.Load(@"C:\Users\Public\Documents\LEADTOOLS Images\Ocr.tif", 0, CodecsLoadByteOrder.BgrOrGray, 2, 4);// Unsubscribe to the LoadImage eventrasterCodecsObject.LoadImage -= new EventHandler<CodecsLoadImageEventArgs>(rasterCodecsObject_LoadImage);return image;}private void rasterCodecsObject_LoadImage(object sender, CodecsLoadImageEventArgs e){}
Inside the event handler, we will have the following values:
| Member | Values |
|---|---|
| FirstPage | Will always be 2 since we specified 2 as the first page to load. |
| Page | Will go from 2 through 4 since we are loading pages 2, 3 and 4. |
| LastPage | Will always be 4 since we specified 4 as the last page to load. |
| ImagePage | Will go from 1 through 3 since we are loading new pages 1, 2 and 3. |
| PagePercent | Will go from 0 to 100 three times since we are loading three pages. This value will reset back to zero whenever Page and ImagePage changes. |
| TotalPercent | Will go from 0 to 100 during the whole loading operation. When this value is 100, all the pages are loaded and the method returns. |
For an example, refer to RasterCodecs.LoadImage.
|
Products |
Support |
Feedback: CodecsLoadImageEventArgs Class - Leadtools.Codecs |
Introduction |
Help Version 19.0.2017.6.16
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.