Packages

 

com.aspose.cad.fileformats.cad

Class CadImage

    • Constructor Detail

      • CadImage

        public CadImage()

        Initializes a new instance of the CadImage class.

    • Method Detail

      • getSectionsData

        public final com.aspose.ms.System.Collections.Generic.Dictionary<Integer,byte[]> getSectionsData()

        Get or sets the sectionsData

      • setSectionsData

        public final void setSectionsData(com.aspose.ms.System.Collections.Generic.Dictionary<Integer,byte[]> value)

        Get or sets the sectionsData

      • getActivePage

        public final CadLayout getActivePage()

        Gets the active page.

      • getDefaultLineWeight

        public final float getDefaultLineWeight()

        Gets or sets the default line weight.

        Returns:
        The default line weight.
      • setDefaultLineWeight

        public final void setDefaultLineWeight(float value)

        Gets or sets the default line weight.

        Parameters:
        value - The default line weight.
      • getDefaultFont

        public final String getDefaultFont()

        Gets or sets the default font.

        Returns:
        The default font.
      • setDefaultFont

        public final void setDefaultFont(String value)

        Gets or sets the default font.

        Parameters:
        value - The default font.
      • getFileEncoding

        public final int getFileEncoding()

        Gets file's encoding

      • setFileEncoding

        public final void setFileEncoding(int value)

        Gets file's encoding

      • getApplicationVersion

        public final int getApplicationVersion()

        Gets or sets the application version.

        Value: The application version.
      • setApplicationVersion

        public final void setApplicationVersion(int value)

        Gets or sets the application version.

        Value: The application version.
      • getMaintenanceVersion

        public final int getMaintenanceVersion()

        Gets or sets the maintenance version.

        Value: The maintenance version.
      • setMaintenanceVersion

        public final void setMaintenanceVersion(int value)

        Gets or sets the maintenance version.

        Value: The maintenance version.
      • getSpecifiedEncoding

        public final int getSpecifiedEncoding()

        Gets or sets the specified encoding.

        Returns:
        The specified encoding.
      • setSpecifiedEncoding

        public final void setSpecifiedEncoding(int value)

        Gets or sets the specified encoding.

        Parameters:
        value - The specified encoding.
      • getSpecifiedMifEncoding

        public final int getSpecifiedMifEncoding()

        Gets or sets the specified MIF character encoding

      • setSpecifiedMifEncoding

        public final void setSpecifiedMifEncoding(int value)

        Gets or sets the specified MIF character encoding

      • getLineTypes

        public final CadLineTypesDictionary getLineTypes()

        Gets or sets the dimension styles.

        Returns:
        The dimension styles.
      • setLineTypes

        public final void setLineTypes(CadLineTypesDictionary value)

        Gets or sets the dimension styles.

        Parameters:
        value - The dimension styles.
      • getBlockEntities

        public final CadBlockDictionary getBlockEntities()

        Gets or sets the block entities.

        Returns:
        The block entities.
      • setBlockEntities

        public final void setBlockEntities(CadBlockDictionary value)

        Gets or sets the block entities.

        Parameters:
        value - The block entities.
      • getClassEntities

        public final CadClassList getClassEntities()

        Gets or sets the class entities.

        Returns:
        The class entities.
      • setClassEntities

        public final void setClassEntities(CadClassList value)

        Gets or sets the class entities.

        Parameters:
        value - The class entities.
      • getThumbnailImage

        public final CadThumbnailImage getThumbnailImage()

        Gets or sets the thumbnail image.

        Returns:
        The thumbnail image.
      • setThumbnailImage

        public final void setThumbnailImage(CadThumbnailImage value)

        Gets or sets the thumbnail image.

        Parameters:
        value - The thumbnail image.
      • getBlocksTables

        public final CadBlockRecordList getBlocksTables()

        Gets or sets the blocks tables.

        Returns:
        The blocks tables.
      • setBlocksTables

        public final void setBlocksTables(CadBlockRecordList value)

        Gets or sets the blocks tables.

        Parameters:
        value - The blocks tables.
      • getDimensionStyles

        public final CadDimensionDictionary getDimensionStyles()

        Gets or sets the dimension styles.

        Returns:
        The dimension styles.
      • setDimensionStyles

        public final void setDimensionStyles(CadDimensionDictionary value)

        Gets or sets the dimension styles.

        Parameters:
        value - The dimension styles.
      • getEntities

        public final CadBaseEntity[] getEntities()

        Gets or sets the entities.

        Returns:
        The entities.
      • setEntities

        public final void setEntities(CadBaseEntity[] value)

        Gets or sets the entities.

        Parameters:
        value - The entities.
      • getObjects

        public final CadBaseObject[] getObjects()

        Gets or sets the objects.

        Returns:
        The objects.
        Throws:
        CadException - Invalid value for Objects
      • setObjects

        public final void setObjects(CadBaseObject[] value)

        Gets or sets the objects.

        Parameters:
        value - The objects.
        Throws:
        CadException - Invalid value for Objects
      • isCached

        public final boolean isCached()

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

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

        public final CadLayersList getLayers()

        Gets or sets the layers.

        Returns:
        The layers.
      • setLayers

        public final void setLayers(CadLayersList value)

        Gets or sets the layers.

        Parameters:
        value - The layers.
      • getMaxPoint

        public final Cad3DPoint getMaxPoint()

        Gets the max point.

      • getMinPoint

        public final Cad3DPoint getMinPoint()

        Gets the min point.

      • getStyles

        public final CadStylesList getStyles()

        Gets or sets the styles.

      • setStyles

        public final void setStyles(CadStylesList value)

        Gets or sets the styles.

      • getLayouts

        public final CadLayoutDictionary getLayouts()

        Gets the layouts.

        Returns:
        The layouts.
      • getHeader

        public final CadHeader getHeader()

        Gets or sets the header.

        Returns:
        The header.
      • setHeader

        public final void setHeader(CadHeader value)

        Gets or sets the header.

        Parameters:
        value - The header.
      • getViewPorts

        public final CadVportList getViewPorts()

        Gets or sets the view ports.

        Returns:
        The view ports.
      • setViewPorts

        public final void setViewPorts(CadVportList value)

        Gets or sets the view ports.

        Parameters:
        value - The view ports.
      • getViews

        public final CadViewList getViews()

        Gets or sets the views.

        Returns:
        The views.
      • setViews

        public final void setViews(CadViewList value)

        Gets or sets the views.

        Parameters:
        value - The views.
      • getUCSs

        public final CadUcsList getUCSs()

        Gets or sets the uc ss.

        Returns:
        The uc ss.
      • setUCSs

        public final void setUCSs(CadUcsList value)

        Gets or sets the uc ss.

        Parameters:
        value - The uc ss.
      • getCadAcds

        public final CadAcdsList getCadAcds()

        Gets or sets the CadAcds list

      • setCadAcds

        public final void setCadAcds(CadAcdsList value)

        Gets or sets the CadAcds list

      • getAppIdTables

        public final CadAppIdDictionary getAppIdTables()

        Gets or sets the application identifier tables.

        Returns:
        The application identifier tables.
      • setAppIdTables

        public final void setAppIdTables(CadAppIdDictionary value)

        Gets or sets the application identifier tables.

        Parameters:
        value - The application identifier tables.
      • removeEntityAt

        public final void removeEntityAt(int position)

        Removes entity by its position.

        Parameters:
        position - Position to remove entity from.
      • removeEntity

        public void removeEntity(CadBaseEntity entity)

        Removes enity.

        Parameters:
        entity - Entity to remove.
      • cacheData

        public final void cacheData()

        Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer(DataStreamSupporter.getDataStreamContainer()/DataStreamSupporter.setDataStreamContainer_internalized(StreamContainer)).

        Specified by:
        cacheData in class com.aspose.cad.DataStreamSupporter
      • getStrings

        public String[] getStrings()

        Gets all string values from image.

        Overrides:
        getStrings in class Image
        Returns:
        The array with string values.
      • updateSize

        public final void updateSize()
      • updateSize

        public final void updateSize(boolean includeBeyondSize)

        Updates size of an image after changes, that may affect initial size, e.g. removing of entities. MinPoint, MaxPoint, Width and Height properties of image are updated.

        Parameters:
        includeBeyondSize - Determines whether entities that lie outside the boundaries of the image size should affect the new image size.
      • fillBounds

        public final void fillBounds()

        Fills Bounds property (contain minimum and maximum point of entity) for all entities.

      • getBounds

        public final void getBounds(CadBaseEntity entity)

        Fills Bounds property (contains minimum and maximum point) for entity.