67. Thumbnails

Write a MakeThumbnail method that creates a thumbnail bitmap for an image file. Give it maxWidth and maxHeight parameters to indicate the thumbnail's size.

Use this method to write a program that searches a directory for image files and makes thumbnails for them all, saving the results in a Thumbnails subdirectory. Give the thumbnail files the same names as the original files with thumbnail added at the end, as in MyPhoto thumbnail.bmp.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset