Windows Dynamic Libraries

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
bibble_235
Posts: 1
Joined: 2013-02-23T16:58:20-07:00
Authentication code: 6789

Windows Dynamic Libraries

Post by bibble_235 »

Hi,

I need to change our implementation to use DLLs, previously we used static libraries. I have built it with the configure.exe.

It all builds and runs but the blobs are all 0 data length after write. A brief example of the code, which worked previous with static is

Code: Select all

m_Blob = new Blob();

Image myImage(Geometry(m_Columns,m_Rows),"gray0");
myImage.depth(8);
myImage.magick("RGB");
myImage.strokeColor("grey30");
myImage.fillColor("grey30");
myImage.strokeWidth(5);
myImage.strokeAntiAlias(true);
myImage.draw(DrawableRoundRectangle(0,0,m_Columns,m_Rows,16,16));
...
...
myImage.write(m_Blob);
Thanks,
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Windows Dynamic Libraries

Post by magick »

Go to c:\Program Files\ImageMagick-6.8.3-Q16\Magick++_demos and click on the button workspace. Build and execute. Now replace the source within the try / catch block with

Code: Select all

   Image image;
   image.read("wizard:");
   Blob blob;
   image.write( &blob );
   cout << blob.length() << endl;
Now build and execute. You should get a value of about 693000 suggesting blobs are working fine with ImageMagick dynamic libs. If that does not work, let us know.
Post Reply