Packages

 

com.aspose.cad.fileformats.ifc

Class IfcImage

    • Constructor Detail

      • IfcImage

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

        Initializes a new instance of the IfcImage class.

        Parameters:
        drawFigures - The draw figures.
    • 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.
      • 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.
      • 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:
        UnsupportedOperationException
      • 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:
        UnsupportedOperationException
      • 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:
        UnsupportedOperationException