Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    TdxGPImageCodecEMF Class

    An Enhanced Windows Metafile (EMF) image format codec.

    #Declaration

    Delphi
    TdxGPImageCodecEMF = class(
        TdxGPImageCodec
    )

    #Remarks

    TdxGPImageCodecWMF and TdxGPImageCodecEMF classes implement Windows Metafile (WMF) and Enhanced Windows Metafile (EMF) image formats in DevExpress products. Both codecs rely on the functionality of the native Windows Metafile encoder from the Windows Imaging Component (WIC).

    #Main API Members

    The list below outlines key members of the TdxGPImageCodecEMF class that allow you to perform basic operations with images.

    Extensions | Description | MimeType
    Return the implemented format description, associated MIME type, and file name extensions.
    CanLoadFromBits
    Allows you to identify if the codec can load an image from pixel data.
    CanLoadStream
    Identifies whether the specified stream contains supported image data.
    GetSize
    Returns dimensions of an image stored in a stream.
    CanSaveImage
    Allows you to check if the codec can save the specified image.
    Load | Save
    Load and save images.

    #TdxGPImageCodecEMF Class References

    You can assign a reference to the TdxGPImageCodecEMF class to a Smart Image container’s ImageCodec property to convert an image in the container to the WMF format.

    #Inheritance

    See Also