Page 1 of 1

Problem with Image.read(), write() methods

Posted: 2009-10-25T11:31:46-07:00
by black_and_white
Hi,

I've got some problem with Image object.

Code: Select all

Magick::Image image;
try{
  image.read("1.raw"); // here is my problem
}
catch(Magick::Exception &ex){
  std::cout<<"Exception: "<<ex.what()<<std::endl;
}
Everything is ok, until i try to read(or write) Image to file. If I try read from file in constructor - the same.
I'm using windows with Visual Studio 2008.
Can anybody give me any advices what can be wrong?

Re: Problem with Image.read(), write() methods

Posted: 2009-10-25T13:47:53-07:00
by magick
For raw images you need to specify the size and format of the raw image (e.g. 640x480, RGB).