# ConsoleBasic

| Support            | ![](assets/images/sample_programs/applies_to/cpp.svg) ![](assets/images/sample_programs/applies_to/cs.svg) ![](assets/images/sample_programs/applies_to/cmake.svg)   |
|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Required licenses  | Any, **EasyImage** for the processing part                                                                                                                           |
| Recommended images | Any                                                                                                                                                                  |
| Location           | `Image Processing/Basic`                                                                                                                                             |

## Purpose

This sample program demonstrates:

* Initialize and release the library.
* Check for a specific license.
* Load an image and perform a simple processing on it.

## Code highlights

1. Initializes the eVision library. This should be done before any other call to eVision.
   ```c++
   Easy::Initialize();
   ```
2. Release the library or tool.

   #### ATTENTION
   You must do this after all the other calls to eVision.

   ```c++
   Easy::Terminate();
   ```
3. Check the presence of a license on the system.
   ```c++
   Easy::CheckLicense(...);
   ```
4. Load an image file from the disk into an object `EImage`.
   ```c++
   img.Load(...);
   ```
