Again I think it would not be possible to get ImageEn to work with and handle AggPas output.
I know for sure that the developer offered support for ImageEN. You'll probably have to check the source or try this (old code found on the web):
procedure TFrmMain.Button1Click( Sender: TObject );
begin
if OpenPictureDialog1.Execute then
begin
ImageEnView1.IO.LoadFromFile( OpenPictureDialog1.FileName );
ImageEnView1.Update;
end;
end;
procedure TFrmMain.Button2Click( Sender: TObject );
begin
// Attach vector graphics engine to an existing TBitmap from ImageEn
// (must be pf24bit or pf32bit)
if ImageEnView1.Bitmap <>nil then
begin
if VG.Attach( ImageEnView1.Bitmap ) then
begin
// Perform your own vector graphics tasks
VG.Line( 10, 10, 20, 20 );
VG.Font( 'Arial', 20 );
VG.Text( 40, 40, 'Hello World !' );
end;
end;
ImageEnView1.Update;
end;
procedure TFrmMain.FormCreate( Sender: TObject );
begin
// Create instance of TAgg2D vector graphics engine
VG := TAgg2D.Create;
end;
procedure TFrmMain.FormDestroy( Sender: TObject );
begin
VG.Free;
end;
-Uwe