Packages

 

com.aspose.cad.fileformats.cad

Class CadImage

    • Constructor Detail

      • CadImage

        public CadImage()

        Initializes a new instance of the CadImage class.

    • Method Detail

      • 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.
      • 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.
      • 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.
      • getBitsPerPixel

        public int getBitsPerPixel()

        Gets the image bits per pixel count.

        Specified by:
        getBitsPerPixel in class Image
        Returns:
        The image bits per pixel count.
      • 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 final 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).

        Specified by:
        cacheData in class com.aspose.cad.DataStreamSupporter
      • 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.
      • 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.
      • 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.
      • updateSize

        public final void updateSize()

        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.

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