Pascal Magick - getting the image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Trunkles

Pascal Magick - getting the image

Post by Trunkles »

Hi folks.

Here's a little chunk of code. Could some kind soul please tell me how to get rid of my ARGH? Or tell me how to draw a 'wand' on a printer canvas?

Code: Select all

Procedure PrintImage;
var
   RemPicture: TGraphic;
   status: MagickBooleanType;
   wand: PMagickWand;

begin
     wand := NewMagickWand;

     RemPicture := TImage.Create;

     MagickReadImage(wand, 'truck.jpg');
     
     MagickScaleImage(wand, 500, 500);

     RemPicture := GetImageFromMagickWand(wand);    <------- ARGH!

     Printer.BeginDoc;
     Printer.Canvas.Draw(500, 500, RemPicture);
     Printer.EndDoc;
end;
Ta muchly.

Simon.
Post Reply