@mlightcad/data-model
Version:
The data-model package provides the core classes for interacting with AutoCAD's database and entities. This package mimics AutoCAD ObjectARX's AcDb (Database) classes and implements the drawing database structure that AutoCAD developers are familiar with.
54 lines • 1.82 kB
TypeScript
import { AcDbObject } from '../base';
/**
* The AcDbRasterImageDef object (or "image definition object") works with the AcDbRasterImage entity
* (or "image entity") to implement raster images inside AutoCAD.
*
* The relationship between these two classes is much like the relationship between an AutoCAD block
* definition object and a block insert entity. The image definition object plays a behind-the-scenes
* role like the block definition, maintaining links to the source image file and managing low-level
* image processing operations required to display and plot images. Image definition objects are stored
* in a special AcDbDictionary named ISM_RASTER_IMAGE_DICT.
*
* @example
* ```typescript
* const imageDef = new AcDbRasterImageDef();
* imageDef.sourceFileName = '/path/to/image.jpg';
* ```
*/
export declare class AcDbRasterImageDef extends AcDbObject {
/** The path name of the externally referenced image file */
private _sourceFileName;
/**
* Creates a new AcDbRasterImageDef instance.
*
* @example
* ```typescript
* const imageDef = new AcDbRasterImageDef();
* ```
*/
constructor();
/**
* Gets the path name of the externally referenced image file.
*
* @returns The source file name/path
*
* @example
* ```typescript
* const fileName = imageDef.sourceFileName;
* console.log('Image file:', fileName);
* ```
*/
get sourceFileName(): string;
/**
* Sets the path name of the externally referenced image file.
*
* @param value - The new source file name/path
*
* @example
* ```typescript
* imageDef.sourceFileName = '/path/to/image.jpg';
* ```
*/
set sourceFileName(value: string);
}
//# sourceMappingURL=AcDbRasterImageDef.d.ts.map