I have a BMP image and I want to extract a small portion of it and save it as a new BMP image file. I was able to load image and read it however I was not able to extract the small portion of BMP image as I am new to manipulating BMP image with python and also it not same as reading text file. Things I have to do is
- load image.
- extract small portion of image. eg. I have to extract 40X40 pixel image from 900X900 image file
- then save extracted image as new file. eg new.bmp
I am trying to do this for last 3 days also I have searched a lot in the net but got solution which uses Pillow library however I need it to do this without using any external module of Python. Stackoverflow is my last hope I need some guidance from a expert people present here, please provide my some guidance.