public class DracoImage extends Image
Represents an image in DRACO format. Contains information about bounds of the drawing, vertices, faces and attributes.
Loading of the drawing in DRACO format.using (DracoImage drcImage = (DracoImage)Image.Load(fileName)) { ... }
| Modifier and Type | Method and Description |
|---|---|
void |
cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying
DataStreamSupporter.DataStreamContainer(DataStreamSupporter#getDataStreamContainer ). |
int |
getDepth()
Gets the depth of the image.
|
int |
getHeight()
Gets the height of the image.
|
int[] |
getIndices()
The array of mesh faces indices.
|
int |
getWidth()
Gets the width of the image.
|
boolean |
isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
|
void |
setIndices(int[] value)
The array of mesh faces indices.
|
canLoad, canLoad, canLoad, canLoad, canSave, getAnnotationService, getBounds, getContainer, getCustomProperties, getFileFormat, getFileFormat, getPalette, getSize, getStrings, getUnitlessDefaultUnitType, getUnitType, getWatermarkGuardService, load, load, load, load, load, save, save, save, setPalettegetDataStreamContainer, save, save, save, saveclose, dispose, getDisposedpublic final int[] getIndices()
The array of mesh faces indices.
public final void setIndices(int[] value)
The array of mesh faces indices.
public int getWidth()
Gets the width of the image. Calculated as the difference between maximum and minimum values of the X coordinate amongst all vertices. Minimal allowed width is 1.
Value: The width of the image.Prints the width of the DRACO drawing.using (DracoImage drcImage = (DracoImage)Image.Load(fileName)) { System.Console.WriteLine("The width of the image is {0}", drcImage.Width); }
getWidth in interface IObjectWithBoundsgetWidth in class Imagepublic int getHeight()
Gets the height of the image. Calculated as the difference between maximum and minimum values of the Y coordinate amongst all vertices. Minimal allowed height is 1.
Value: The height of the image.Prints the height of the DRACO drawing.using (DracoImage drcImage = (DracoImage)Image.Load(fileName)) { System.Console.WriteLine("The height of the image is {0}", drcImage.Height); }
getHeight in interface IObjectWithBoundsgetHeight in class Imagepublic int getDepth()
Gets the depth of the image. Calculated as the difference between maximum and minimum values of the Z coordinate amongst all vertices. Minimal allowed depth is 0.
Value: The depth of the image.Prints the depth of the DRACO drawing.using (DracoImage drcImage = (DracoImage)Image.Load(fileName)) { System.Console.WriteLine("The depth of the image is {0}", drcImage.Depth); }
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.isCached in class DataStreamSupporterpublic void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer(DataStreamSupporter#getDataStreamContainer ).
Not implemented.
cacheData in class DataStreamSupportercom.aspose.ms.System.NotImplementedExceptionCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.