Code Samples (C/C++)

Image Cropper (BMP only)
The following application is written in C/C++, without using external image libraries.

Write a commandline tool that crops an image to a smallest bounding rectangle. Smallest bounding rectangle is defined by edges of the image that are touching the unique pixels of the image. You can observe smallest bounding rectangle in images.bmp, assuming that the image is an 8‐bit image.

The code is here: Click here


Create a free website or blog at

Up ↑

%d bloggers like this: