Packages

 

com.aspose.cad.fileformats.dwf

Class DwfImage

    • Constructor Detail

      • DwfImage

        public DwfImage(DwfEPlotPage... pages)

        Initializes a new instance of the DwfImage class

        Parameters:
        pages - plot pages of image
    • Method Detail

      • getPages

        public com.aspose.ms.System.Collections.ObjectModel.ReadOnlyCollection<DwfEPlotPage> getPages()

        Gets pages

      • getBitsPerPixel

        public int getBitsPerPixel()

        Gets bit per pixel

        Specified by:
        getBitsPerPixel in class Image
        Returns:
        The image bits per pixel count.
      • isCached

        public boolean isCached()

        Gets is image cached

        Specified by:
        isCached in class DataStreamSupporter
        Returns:
        true if object's data is cached; otherwise, false.
      • resize

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

        Resizes image

        Specified by:
        resize in class Image
        Parameters:
        newWidth - new width of image
        newHeight - new height of image
        settings - settings object
      • resize

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

        Resizes image

        Specified by:
        resize in class Image
        Parameters:
        newWidth - new width of image
        newHeight - new height of image
        resizeType - resize type of image
      • rotateFlip

        public void rotateFlip(int rotateFlipType)

        Rotates and flips image

        Specified by:
        rotateFlip in class Image
        Parameters:
        rotateFlipType - rotateFlip type
      • setPalette

        public void setPalette(IColorPalette palette,
                      boolean updateColors)

        Sets pallete for image

        Specified by:
        setPalette in class Image
        Parameters:
        palette - pallete object
        updateColors - need update colors
      • saveInternal_internalized

        public void saveInternal_internalized(com.aspose.ms.System.IO.Stream stream,
                                     ImageOptionsBase optionsBase,
                                     Rectangle boundsRectangle)

        Saves the image's data to the specified stream in the specified file format according to save options.

        Overrides:
        saveInternal_internalized in class Image
        Parameters:
        stream - The stream to save the image's data to.
        optionsBase - The save options.
        boundsRectangle - The destination image bounds rectangle. Set the empty rectangle for use source bounds.
        Throws:
        ArgumentNullException - The parameter optionsBase is null.
        ArgumentException - Cannot save to the specified format as it is not supported at the moment.; optionsBase
        ImageSaveException - Image export failed.