Bitmap Conversion To Different Shape

Program taking a bitmap and coordinates of a quadruple and changing
the shape of a bitmap according to coordinates.
The background of a new image must be translucent.

change_shape.py -in my_input_bitmap.png -p1 10,10 -p2 100,20 -p3 50,80 -p4 55,85 -out outcome.png

Preferable in Python2.6 and OpenGL and Python Imaging Library PIL.
If you want make it .NET or Java you will need to provide additionally standalone executable and instructions how to build it from source.

Also XCode and Objective-C is allowed.

C#
C++ / C
Cocoa / Obj-C
Java
Python

Other Requirements:

Usage of the program from the command line:

IT MUST BE A COMMAND LINE PROGRAM

change_shape.py -in my_input_bitmap.png -p1 10,10 -p2 100,20 -p3 50,80 -p4 55,85 -out outcome.png

You will find a picture that describes the problem in a graphical way.

Leave a Reply

Your email address will not be published. Required fields are marked *