Packages

 

com.aspose.imaging.fileformats.wmf

Class WmfImage

    • Constructor Detail

      • WmfImage

        public WmfImage()

        Initializes a new instance of the WmfImage class.

      • WmfImage

        public WmfImage(int width,
                        int height)

        Initializes a new instance of the WmfImage class.

        Parameters:
        width - The width.
        height - The height.
    • Method Detail

      • isCached

        public boolean isCached()

        Gets a value indicating whether object's data is cached currently and no data readig is required.

        Specified by:
        isCached in class DataStreamSupporter
        Returns:
        true if object's data is cached; otherwise, false.
        Throws:
        com.aspose.ms.System.NotImplementedException - Value: true if object's data is cached; otherwise, false.
      • getBitsPerPixel

        public int getBitsPerPixel()

        Gets the image bits per pixel count.

        Specified by:
        getBitsPerPixel in class Image
        Returns:
        The image bits per pixel count.
        Throws:
        com.aspose.ms.System.NotImplementedException - Value: The image bits per pixel count.
      • getWidth

        public int getWidth()

        Gets the image width.

        Specified by:
        getWidth in interface IObjectWithBounds
        Specified by:
        getWidth in class Image
        Returns:
        The image width.
        Throws:
        com.aspose.ms.System.NotImplementedException - Value: The image width.
      • getHeight

        public int getHeight()

        Gets the image height.

        Specified by:
        getHeight in interface IObjectWithBounds
        Specified by:
        getHeight in class Image
        Returns:
        The image height.
        Throws:
        com.aspose.ms.System.NotImplementedException - Value: The image height.
      • getInch

        public int getInch()

        Gets or sets the inch.

        Value: The inch.
      • setInch

        public void setInch(int value)

        Gets or sets the inch.

        Value: The inch.
      • getFileFormat

        public long getFileFormat()

        Gets a value of file format

        Overrides:
        getFileFormat in class Image
      • cacheData

        public void cacheData()

        Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer.

        Specified by:
        cacheData in class DataStreamSupporter
        Throws:
        com.aspose.ms.System.NotImplementedException - this feature is not implemented
      • resize

        public void resize(int newWidth,
                           int newHeight,
                           int resizeType)

        Resizes the image.

        Specified by:
        resize in class Image
        Parameters:
        newWidth - The new width.
        newHeight - The new height.
        resizeType - The resize type.
        Throws:
        com.aspose.ms.System.NotImplementedException - this feature is not implemented
      • resize

        public void resize(int newWidth,
                           int newHeight,
                           ImageResizeSettings settings)

        Resizes the image.

        Specified by:
        resize in class Image
        Parameters:
        newWidth - The new width.
        newHeight - The new height.
        settings - The resize settings.
        Throws:
        com.aspose.ms.System.NotImplementedException - this feature is not implemented
      • rotateFlip

        public void rotateFlip(int rotateFlipType)

        Rotates, flips, or rotates and flips the image.

        Specified by:
        rotateFlip in class Image
        Parameters:
        rotateFlipType - Type of the rotate flip.
        Throws:
        com.aspose.ms.System.NotImplementedException - this feature is not implemented
      • setPalette

        public void setPalette(IColorPalette palette,
                               boolean updateColors)

        Sets the image palette.

        Specified by:
        setPalette in class Image
        Parameters:
        palette - The palette to set.
        updateColors - if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries.
        Throws:
        com.aspose.ms.System.NotImplementedException - this feature is not implemented
      • crop

        public void crop(Rectangle rectangle)

        Crops the specified rectangle.

        Overrides:
        crop in class MetaImage
        Parameters:
        rectangle - The rectangle.
      • resizeCanvas

        public void resizeCanvas(Rectangle newRectangle)

        Resizes the canvas.

        Specified by:
        resizeCanvas in class MetaImage
        Parameters:
        newRectangle - The new rectangle.
      • addRecord

        public int addRecord(WmfObject record)

        Adds the record.

        Parameters:
        record - The record.
        Returns:
        Number of record.
      • getPostScript

        public final String getPostScript()

        Gets the post script.

        Returns:
        The post script