[问题] 读取BMP图档格式错误

楼主: dk1120 (Jason7123)   2017-05-20 02:04:32
请问在Debian下我参照了Image::BMP这一个模组的范例:
use Image::BMP;
# Example two:
my $img2 = new Image::BMP;
$img2->open_file('another.bmp');
my $color = $img2->xy(100,100); # Get pixel at 100,100
my ($r,$g,$b) = $img2->xy_rgb(100,200);
老是出现无法读取由BITMAPV5HEADE所产生的 another.bmp,这图档到底要如何产生?
[Image::BMP] ERROR: Sorry, can't read bitmaps written with BITMAPV5HEADE
我所适用的用户端是MAC,由GIMP产生another.bmp

Links booklink

Contact Us: admin [ a t ] ucptt.com