ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnVect: Import WMF, Iterate, Build Polygons
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

andyhill

Australia
159 Posts

Posted - Mar 06 2017 :  18:34:54  Show Profile  Reply
I want to Import a WMF/EMF File into ImageEnVect and then iterate all of the objects building my own Polygon Point Arrays (in other words, convert WMF to ImageEnVect Objects).

ImageEnVect1.IO.ImportMetafile('C:\File.emf', 500, -1, True);
  //
  for i:= 0 to ImageEnVect1.ObjectsCount-1 do begin
    hobj:= ImageEnVect1.GetObjFromIndex(i);
    // Line or Polygon 
    if ImageEnVect1.ObjKind[hObj] = iekLINE then begin
      // Get Points etc.

    end;
   end;


Please advise - thanks in advance

Andy

xequte

39053 Posts

Posted - Mar 07 2017 :  22:41:20  Show Profile  Reply
Hi Andy

I'm afraid that is not possible. ImageEn imports meta files as bitmaps.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: