Packages

 

com.aspose.imaging.fileformats.wmf.graphics

Class WmfRecorderGraphics2D

    • Constructor Detail

      • WmfRecorderGraphics2D

        public WmfRecorderGraphics2D(Rectangle frame,
                                     int inch)

        Initializes a new instance of the WmfRecorderGraphics2D class.

        Parameters:
        frame - Destination rectangle, measured in twips, for displaying the metafile.
        inch - The number of pixel per inch.
    • Method Detail

      • getBackgroundMode

        public int getBackgroundMode()

        Gets or sets the background mode.

        Value: The background mode.
        Returns:
        The background mode.
      • setBackgroundMode

        public void setBackgroundMode(short value)

        Gets or sets the background mode.

        Value: The background mode.
      • endRecording

        public final WmfImage endRecording()

        Ends the recording.

        Returns:
        The result image.
      • fromWmfImage

        public static WmfRecorderGraphics2D fromWmfImage(WmfImage wmfImage)

        Gets an instance of the Wmf recorder for the existing Wmf image.

        Parameters:
        wmfImage - The Wmf image to get a recoreder for.
        Returns:
        An instance of the WmfRecorderGraphics2D class.