ImageWMF (Apache FOP Core 2.11 API)
Date: 2025-04-24

org.apache.fop.image.loader.batik

## Class ImageWMF

- java.lang.Object
- - org.apache.xmlgraphics.image.loader.impl.AbstractImage
  - - org.apache.fop.image.loader.batik.ImageWMF

- All Implemented Interfaces:
    org.apache.xmlgraphics.image.loader.Image

      public class ImageWMF
      extends org.apache.xmlgraphics.image.loader.impl.AbstractImage

  This class is an implementation of the Image interface exposing a RenderedImage.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `MIME_WMF` MIME type for WMF
    `static org.apache.xmlgraphics.image.loader.ImageFlavor` | `WMF_IMAGE` ImageFlavor for Batik's WMFRecordStore

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ImageWMF(org.apache.xmlgraphics.image.loader.ImageInfo info, org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore store)` Main constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.xmlgraphics.image.loader.ImageFlavor` | `getFlavor()`
    `org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore` | `getRecordStore()` Returns the contained WMF record store.
    `boolean` | `isCacheable()`

    - ### Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImage

      `getColorSpace, getICCProfile, getInfo, getSize, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### MIME_WMF

          public static final String MIME_WMF

      MIME type for WMF
      See Also:
        Constant Field Values

    - #### WMF_IMAGE

          public static final org.apache.xmlgraphics.image.loader.ImageFlavor WMF_IMAGE

      ImageFlavor for Batik's WMFRecordStore

  - ### Constructor Detail

    - #### ImageWMF

          public ImageWMF(org.apache.xmlgraphics.image.loader.ImageInfo info,
                          org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore store)

      Main constructor.
      Parameters:
        `info` - the image info object
        `store` - the WMF record store containing the loaded WMF file

  - ### Method Detail

    - #### getFlavor

          public org.apache.xmlgraphics.image.loader.ImageFlavor getFlavor()

    - #### isCacheable

          public boolean isCacheable()

    - #### getRecordStore

          public org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore getRecordStore()

      Returns the contained WMF record store.
      Returns:
        the WMFRecordStore

Copyright © 2025 Apache Software Foundation. All rights reserved.