How to get original wmf values

Last post 10-05-2010, 4:16 AM by aspose.notifier. 2 replies.
Sort Posts: Previous Next
  •  09-27-2010, 6:21 PM 260748

    How to get original wmf values Java

    we are evaluating the aspose.metafiles for java library.

    it does successfully convert our wmf file(s) to png(s).  but our application logic requires more information about the conversion.  how can we get the meta information about the image before the conversion?  for instance:

    we have a wmf file -- when opened with windows picture viewer, for example, shows:
    width pixels = 10,123
    height pixels = 12,935
    dpi = 1440

    when converting that wmf using WmfMetafile, we get these properties from the WmfMetafile object:

    width pixels = 675
    height pixels = 862
    dpi = 96

    those values appear to be what the resulting image is after the conversion, which are fine, and the conversion looks great.  but programmatically, we need access to the meta info before the conversion, so that we can compare them to the meta info after the conversion, so that we can see the scale factor.

    how can we get this data from the Aspose library?

     
  •  10-04-2010, 11:51 AM 261779 in reply to 260748

    Re: How to get original wmf values

    Hello Paul,

    Sorry for replying you late.

    We are about to release a new version of Aspose.Metafiles for Java in which WmfMetafile class will contain following new methods that can help you in accomplishing your requirements.

    • getDpi(..)    Returns metafile's DPI.
    • getMuFrame(...)    Returns metafile's position and size in internal metafile units.
    • getMupi(...)   Returns number of metafile's units per inch.

    As soon as the new version becomes available, we would be pleased to share that information. Please be patient and spare us little time.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  10-05-2010, 4:16 AM 261917 in reply to 260748

    Re: How to get original wmf values

    The issues you have found earlier (filed as 20446) have been fixed in this update.


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.
     
View as RSS news feed in XML