Packages

 

com.aspose.cad.fileformats.ifc

Class IfcImage

    • Constructor Detail

      • IfcImage

        public IfcImage()
    • Method Detail

      • getDrawFigures_internalized

        public com.aspose.ms.System.Collections.Generic.List<com.aspose.cad_internal.fileformats.ifc.ifcdrawing.IIFCDrawFigure> getDrawFigures_internalized()

        Gets the draw figures.

        Returns:
        The draw figures.
      • newIfcImage_internalized

        public static IfcImage newIfcImage_internalized(com.aspose.ms.System.Collections.Generic.List<com.aspose.cad_internal.fileformats.ifc.ifcdrawing.IIFCDrawFigure> drawFigures,
                                                        int unit)

        Initializes a new instance of the IfcImage class.

        Parameters:
        drawFigures - The draw figures.
        unit - The unit.
        Returns:
        a new instance of the IfcImage class.
      • 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.
      • 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 - if this method is not implemented
      • getBitsPerPixel

        public int getBitsPerPixel()

        Gets the image bits per pixel count.

        Specified by:
        getBitsPerPixel in class Image
        Returns:
        The image bits per pixel count.
      • 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 - if this method 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 - if this method is not implemented
      • rotateFlip_internalized

        public void rotateFlip_internalized(int rotateFlipType)

        Rotates, flips, or rotates and flips the image.

        Specified by:
        rotateFlip_internalized in class Image
        Parameters:
        rotateFlipType - Type of the rotate flip.
        Throws:
        com.aspose.ms.System.NotImplementedException - if this method 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 - if this method is not implemented
      • getDepth

        public int getDepth()

        Gets the depth.

        Returns:
        The depth.
      • getSizeHelper_internalized

        public com.aspose.cad_internal.exporters.ifcexporter.IfcImageSizeHelper getSizeHelper_internalized()

        Gets the size helper.

        Returns:
        The size helper.
      • 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 sourse bounds.