我得到這個錯誤的Microsoft C++異常:Magick :: ErrorBlob內存位置0x004cf1c8 .. 艾執行以下代碼:未處理的異常與ImageMagick的
#include <Magick++.h>
#include <iostream>
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
{
InitializeMagick(*argv);
Magick::Image image("100x120", "linen");
image.fillColor("black");
image.write("test.png");// if i comment this line there is no more error at the execution
return 0;
}
我得到這個錯誤:捕獲異常:sampleapp.exe UnableToOpenBlob'#FAFAF0F0E6E6':沒有這樣的文件r目錄@ error/blob.c/OpenBlob/2643 – user3347598
'blob'函數用於打開流,文件和字符串,作爲圖像數據的可能來源。你得到的錯誤是因爲該庫出於某種原因無法找到它的配置文件。也許它缺少您的機器上特定安裝所需的一些環境設置。嘗試在安裝文件夾內執行以進行測試。 ImageMagick目錄中的 –
? – user3347598