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,
                        int unit)

        Initializes a new instance of the IfcImage class.

        Parameters:
        drawFigures - The draw figures.
        unit - The unit.
    • Method Detail

      • getAttributes

        public String[] getAttributes()

        Gets the attributes collection.

        Overrides:
        getAttributes in class Image
      • 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 com.aspose.cad.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 com.aspose.cad.DataStreamSupporter
        Throws:
        com.aspose.ms.System.NotImplementedException
      • 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
      • 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
      • setPalette

        public void setPalette(com.aspose.cad.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
      • getDepth

        public int getDepth()

        Gets the depth.

        Returns:
        The depth.

Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.