#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
#include <Magick++.h>
#include <stdio.h>
#include <time.h>
#include <sys\types.h>
#ifndef  WIN32
#define  WIN32
#endif
#include <magick\api.h>
#include <iostream>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
#pragma link "c:\\ImageMagick-6.3.2-Q16\\CORE_RL_magick++_.lib"

TForm1 *Form1;
using namespace std;
using namespace Magick;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  Image image;

    // Read a file into image object
image.read( "D:\Program Files\Borland\CBuilder6\Projects\IVUS\temp_pictures\antonis1.jpg" );

    // Crop the image to specified size (width, height, xOffset, yOffset)
    image.crop( Geometry(100,100, 100, 100) );

    // Write the image to a file
image.write( "D:\Program Files\Borland\CBuilder6\Projects\IVUS\temp_pictures\tonio1.jpg" );
}
The above is a sample piece of code which i wrote with imagemagick.When i try to compile it i get these errors for example: [Linker Error] Unresolved external 'Magick::Image::read(const _STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >&)' referenced from D:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\TEST\UNIT1.OBJ

I can't figure out what's the problem so please if anyone could help me i 'd be really happy to know.



_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to