Rasters

autocad_entity: autocad_raster

Features with autocad_entity set to autocad_raster are stored in and read from drawing files as rectangular 2D entities that contain raster information.

Attribute Name

Content

autocad_raster_brightness

 

The brightness of the raster as seen in an AutoCAD application.

Range: 0-100

Default: 50

autocad_raster_contrast

 

The contrast of the raster as seen in an AutoCAD application.

Range: 0-100

Default: 50

autocad_raster_fade

 

The fade of the raster as seen in an AutoCAD application

Range: 0-100

Default: 0

autocad_raster_filename

 

The full path name of the raster file associated with a raster entity.

Range: char[65]

Default: None

autocad_raster_display_opt_clip

 

Display option for an AutoCAD application, if the raster is clipped this option controls whether or not to show it as clipped.

Range: Yes | No

Default: Yes

autocad_raster_display_opt_show

Display option for an AutoCAD application.

If Yes, the raster will be displayed; otherwise just the bounding box will be displayed.

Range: Yes | No

Default: Yes

autocad_raster_display_opt_show_unaligned

Display option for an AutoCAD application.

If Yes, the raster will be displayed regardless of whether or not it is axis aligned; if No, only the bounding box will be shown.

Range: Yes | No

Default: Yes

autocad_raster_display_opt_transparent

Display option for an AutoCAD application.

If Yes, the raster has background transparency; otherwise, it does not have any background transparency.

Range: Yes | No

Default: No

autocad_raster_transparency

The transparency of the entity.

If the value is 0, then the entity is completely clear; if the value is 255, then the entity is completely opaque.

This may be a resolved value in which case autocad_raster_original_transparency will exist.

Range: 0…255

Default: 255

autocad_raster_original_transparency

The transparency of the entity before it was resolved. If the value is ByLayer, then the resolved transparency came from the Layer containing the raster; if the value is ByBlock, then the resolved transparency came from the Block containing the raster.

Note   ByBlock is not fully supported when reading: if an entity has a transparency of ByBlock, the resolved transparency will be set to 255.

Range: ByLayer | ByBlock

Default: ByLayer

autocad_raster_clip_inverted

When reading raster data, if set to Yes, the raster has its clipping configured to be inverted.

This is only informative during reading, as the AutoCAD reader does not perform an inverted clipping operation.

Range: Yes | No

Default: No

autocad_raster_clip_points{#}.x autocad_raster_clip_points{#}.y autocad_raster_clip_points{#}.z

Three real values that represent the clipping points of a clipped raster. It is possible to build up a polygon representing the clipping area and then apply the clipping with the Clipper Transformer.

Range: Any real number