public class CgmImage extends Image
Represents a CGM file in binary mode
| Constructor and Description |
|---|
CgmImage() |
| 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. |
CgmFile |
getData()
Provides CGM data structure
|
int |
getHeight()
Gets the image height.
|
int |
getWidth()
Gets the image width.
|
boolean |
isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
|
canLoad, canLoad, canLoad, canLoad, canSave, getAnnotationService, getBounds, getContainer, getCustomProperties, getDepth, getFileFormat, getFileFormat, getPalette, getSize, getStrings, getUnitlessDefaultUnitType, getUnitType, getWatermarkGuardService, load, load, load, load, load, save, save, save, setPalettegetDataStreamContainer, save, save, save, saveclose, dispose, getDisposedpublic final CgmFile getData()
Provides CGM data structure
public boolean isCached()
DataStreamSupporterGets a value indicating whether object's data is cached currently and no data reading is required.
isCached in class DataStreamSupporterpublic void cacheData()
DataStreamSupporter
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer.
cacheData in class DataStreamSupporterpublic int getWidth()
ImageGets the image width.
Value: The image width.Prints drawing's widthImage drawing = ... System.Console.WriteLine("Drawing's width: " + drawing.Width);
getWidth in interface IObjectWithBoundsgetWidth in class Imagepublic int getHeight()
ImageGets the image height.
Value: The image height.Prints drawing's heightImage drawing = ... System.Console.WriteLine("Drawing's height: " + drawing.Height);
getHeight in interface IObjectWithBoundsgetHeight in class ImageCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.