Packages

 

com.aspose.cad.fileformats.collada

Class ColladaImage

    • Constructor Detail

      • ColladaImage

        public ColladaImage(Collada colladaData)

        Initializes a new instance of the ColladaImage class.

        Parameters:
        colladaData - The COLLADA data.
    • Method Detail

      • isCached

        public boolean isCached()

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

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

        public int getWidth()

        Gets the image width.


         Prints drawing's width
         
         Image drawing = ...
         System.Console.WriteLine("Drawing's width: " + drawing.Width);
         
        Value: The image width.
        Specified by:
        getWidth in interface IObjectWithBounds
        Specified by:
        getWidth in class Image
        Returns:
        The image width.
      • getHeight

        public int getHeight()

        Gets the image height.


         Prints drawing's height
         
         Image drawing = ...
         System.Console.WriteLine("Drawing's height: " + drawing.Height);
         
        Value: The image height.
        Specified by:
        getHeight in interface IObjectWithBounds
        Specified by:
        getHeight in class Image
        Returns:
        The image height.
      • cacheData

        public void cacheData()

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

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