This sample loads an image and copy it to a new file. The program takes 2 parameters: the image name and a new filename.
Listing 3: Copy an image
Note that I remove all error checking lines from the code above to make things simple.
| 3. Retrieve Image Properties | 5. Convert RGB to Grayscale |
| Tel. | +62 31 8662872 +62 856 338 6017 |
| ICQ | 489571630 |
| Skype | dede_bl4ckheart |
| Yahoo | dede_bl4ckheart |
| nashruddin.amin |