- resolver a bmp file
- resize
- graying
- rotate
bmp = Bmp() #create a new bmp
# start resolver
bmp.parse('filename') #resovler a new bmp file must have
# start operation
bmp.rotate() # rotate
bmp.resize(width, height) #resize
bmp.graying() # graying
bmp.generate('target_file_path') #use this to save change
!!!! my english is poor... please forgive me ☺
- don't have error checking
- rotation only can rotate anticlockwise 90°
- unknown errors (-.-)
本人英语比较渣。。这里说声抱歉。 入门者可以查看该源码来获得一些基本的图像处理思路(因为我也是小白~)
- 解析BMP文件
- 放大、缩小
- 灰度化
- 旋转
- 没有错误检查
- 只能逆时针旋转90°
- 未知错误若干 (手动滑稽)