In addition, it showed how to use the ImageViewer and RasterCodecs classes. This tutorial showed how to add the necessary references to load, display, and save images. When Save is pressed, a new JPEG file is created in the output location specified in the Save Dialog. If the steps were followed correctly, the application runs and loads any image that is supported by the above codecs filters, and displays the image in the Image Viewer. Run the project by pressing F5, or by selecting Debug -> Start Debugging. Private void saveToolStripMenuItem_Click( object sender, EventArgs e) Add the below code to initialize the Image Viewer. Right-click on Form1.cs in the Solution Explorer and select View Code to display the code behind the form. Now that the LEADTOOLS references have been added to the project and the license has been set, coding can begin. If a Deployment license file and developer key are needed, refer to Obtaining a License.Īdding LEADTOOLS NuGet and local references and setting a license are covered in more detail in the Add References and Set a License Tutorial. Evaluation license, obtained at the time the evaluation toolkit is downloaded. For details including tutorials for different platforms, refer to Setting a Runtime License. It must be set before any toolkit function is called. The License unlocks the features needed for the project. The DLLs are located at \LEADTOOLS21\Bin\Dotnet4\圆4:įor a complete list of which Codec DLLs are required for specific formats, refer to File Format Support. If local DLL references are used, the following DLLs are needed. If using NuGet references, this tutorial requires the following NuGet packages: For this project, the following references are needed: References can be added by one or the other of the following two methods (but not both). The references needed depend upon the purpose of the project. In Visual Studio, create a new C# Windows WinForms project, and add the below necessary LEADTOOLS references. Run the project by pressing F5, or by selecting Debug-> Start Debugging.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |