libDXF 0.0.1
A library with DXF related functions written in C.
|
Header file for a DXF image entity (IMAGE
).
More...
Go to the source code of this file.
Data Structures | |
struct | dxf_image_struct |
Definition of an AutoCAD image entity (IMAGE ). More... | |
Typedefs | |
typedef struct dxf_image_struct | DxfImage |
Definition of an AutoCAD image entity (IMAGE ). | |
Functions | |
DxfImage * | dxf_image_new () |
Allocate memory for a DXF IMAGE . | |
DxfImage * | dxf_image_init (DxfImage *image) |
Allocate memory and initialize data fields in a DXF IMAGE entity. | |
DxfImage * | dxf_image_read (DxfFile *fp, DxfImage *image) |
Read data from a DXF file into a DXF IMAGE entity. | |
int | dxf_image_write (DxfFile *fp, DxfImage *image) |
Write DXF output for a DXF IMAGE entity. | |
int | dxf_image_free (DxfImage *image) |
Free the allocated memory for a DXF IMAGE and all it's data fields. | |
void | dxf_image_free_chain (DxfImage *images) |
Free the allocated memory for a chain of DXF IMAGE entities and all their data fields. | |
int | dxf_image_get_id_code (DxfImage *image) |
Get the id_code from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_id_code (DxfImage *image, int id_code) |
Set the id_code for a DXF IMAGE entity. | |
char * | dxf_image_get_linetype (DxfImage *image) |
Get the linetype from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_linetype (DxfImage *image, char *linetype) |
Set the linetype for a DXF IMAGE entity. | |
char * | dxf_image_get_layer (DxfImage *image) |
Get the layer from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_layer (DxfImage *image, char *layer) |
Set the layer for a DXF IMAGE entity. | |
double | dxf_image_get_elevation (DxfImage *image) |
Get the elevation from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_elevation (DxfImage *image, double elevation) |
Set the elevation for a DXF IMAGE entity. | |
double | dxf_image_get_thickness (DxfImage *image) |
Get the thickness from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_thickness (DxfImage *image, double thickness) |
Set the thickness for a DXF IMAGE entity. | |
double | dxf_image_get_linetype_scale (DxfImage *image) |
Get the linetype_scale from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_linetype_scale (DxfImage *image, double linetype_scale) |
Set the linetype_scale for a DXF IMAGE entity. | |
int16_t | dxf_image_get_visibility (DxfImage *image) |
Get the visibility from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_visibility (DxfImage *image, int16_t visibility) |
Set the visibility for a DXF IMAGE entity. | |
int | dxf_image_get_color (DxfImage *image) |
Get the color from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_color (DxfImage *image, int color) |
Set the color for a DXF IMAGE entity. | |
int | dxf_image_get_paperspace (DxfImage *image) |
Get the paperspace flag value from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_paperspace (DxfImage *image, int paperspace) |
Set the paperspace flag for a DXF IMAGE entity. | |
int | dxf_image_get_graphics_data_size (DxfImage *image) |
Get the graphics_data_size value from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_graphics_data_size (DxfImage *spline, int graphics_data_size) |
Set the graphics_data_size value for a DXF IMAGE entity. | |
int16_t | dxf_image_get_shadow_mode (DxfImage *image) |
Get the shadow_mode from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_shadow_mode (DxfImage *image, int16_t shadow_mode) |
Set the shadow_mode for a DXF IMAGE entity. | |
DxfBinaryGraphicsData * | dxf_image_get_binary_graphics_data (DxfImage *image) |
Get the pointer to the binary_graphics_data from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_binary_graphics_data (DxfImage *image, DxfBinaryGraphicsData *data) |
Set the pointer to the binary_graphics_data for a DXF IMAGE entity. | |
char * | dxf_image_get_dictionary_owner_soft (DxfImage *image) |
Get the pointer to the dictionary_owner_soft from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_dictionary_owner_soft (DxfImage *image, char *dictionary_owner_soft) |
Set the pointer to the dictionary_owner_soft for a DXF IMAGE entity. | |
char * | dxf_image_get_material (DxfImage *image) |
Get the pointer to the material from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_material (DxfImage *image, char *material) |
Set the pointer to the material for a DXF IMAGE entity. | |
char * | dxf_image_get_dictionary_owner_hard (DxfImage *image) |
Get the pointer to the dictionary_owner_hard from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_dictionary_owner_hard (DxfImage *image, char *dictionary_owner_hard) |
Set the pointer to the dictionary_owner_hard for a DXF IMAGE entity. | |
int16_t | dxf_image_get_lineweight (DxfImage *image) |
Get the lineweight from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_lineweight (DxfImage *image, int16_t lineweight) |
Set the lineweight for a DXF IMAGE entity. | |
char * | dxf_image_get_plot_style_name (DxfImage *image) |
Get the plot_style_name from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_plot_style_name (DxfImage *image, char *plot_style_name) |
Set the plot_style_name for a DXF IMAGE entity. | |
long | dxf_image_get_color_value (DxfImage *image) |
Get the color_value from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_color_value (DxfImage *image, long color_value) |
Set the color_value for a DXF IMAGE entity. | |
char * | dxf_image_get_color_name (DxfImage *image) |
Get the color_name from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_color_name (DxfImage *image, char *color_name) |
Set the color_name for a DXF IMAGE entity. | |
long | dxf_image_get_transparency (DxfImage *image) |
Get the transparency from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_transparency (DxfImage *image, long transparency) |
Set the transparency for a DXF IMAGE entity. | |
DxfPoint * | dxf_image_get_p0 (DxfImage *image) |
Get the insertion point p0 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_p0 (DxfImage *image, DxfPoint *p0) |
Set the insertion point p0 of a DXF IMAGE entity. | |
double | dxf_image_get_x0 (DxfImage *image) |
Get the X-value of the insertion point x0 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_x0 (DxfImage *image, double x0) |
Set the X-value of the insertion point x0 of a DXF IMAGE entity. | |
double | dxf_image_get_y0 (DxfImage *image) |
Get the Y-value of the insertion point y0 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_y0 (DxfImage *image, double y0) |
Set the Y-value of the insertion point y0 of a DXF IMAGE entity. | |
double | dxf_image_get_z0 (DxfImage *image) |
Get the Z-value of the insertion point z0 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_z0 (DxfImage *image, double z0) |
Set the Z-value of the insertion point z0 of a DXF IMAGE entity. | |
DxfPoint * | dxf_image_get_p1 (DxfImage *image) |
Get the U-vector of a single pixel p1 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_p1 (DxfImage *image, DxfPoint *p1) |
Set the U-vector of a single pixel p1 of a DXF IMAGE entity. | |
double | dxf_image_get_x1 (DxfImage *image) |
Get the X-value of the U-vector of a single pixel x1 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_x1 (DxfImage *image, double x1) |
Set the X-value of the U-vector of a single pixel x1 of a DXF IMAGE entity. | |
double | dxf_image_get_y1 (DxfImage *image) |
Get the Y-value of the U-vector of a single pixel y1 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_y1 (DxfImage *image, double y1) |
Set the Y-value of the U-vector of a single pixel y1 of a DXF IMAGE entity. | |
double | dxf_image_get_z1 (DxfImage *image) |
Get the Z-value of the U-vector of a single pixel z1 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_z1 (DxfImage *image, double z1) |
Set the Z-value of the U-vector of a single pixel z1 of a DXF IMAGE entity. | |
DxfPoint * | dxf_image_get_p2 (DxfImage *image) |
Get the V-vector of a single pixel p2 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_p2 (DxfImage *image, DxfPoint *p2) |
Set the V-vector of a single pixel p2 of a DXF IMAGE entity. | |
double | dxf_image_get_x2 (DxfImage *image) |
Get the X-value of the V-vector of a single pixel x2 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_x2 (DxfImage *image, double x2) |
Set the X-value of the V-vector of a single pixel x2 of a DXF IMAGE entity. | |
double | dxf_image_get_y2 (DxfImage *image) |
Get the Y-value of the V-vector of a single pixel y2 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_y2 (DxfImage *image, double y2) |
Set the Y-value of the V-vector of a single pixel y2 of a DXF IMAGE entity. | |
double | dxf_image_get_z2 (DxfImage *image) |
Get the Z-value of the V-vector of a single pixel z2 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_z2 (DxfImage *image, double z2) |
Set the Z-value of the V-vector of a single pixel z2 of a DXF IMAGE entity. | |
DxfPoint * | dxf_image_get_p3 (DxfImage *image) |
Get the U- and V-value of the image in pixel size p3 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_p3 (DxfImage *image, DxfPoint *p3) |
Set the U- and V-value of the image in pixel size p3 of a DXF IMAGE entity. | |
double | dxf_image_get_x3 (DxfImage *image) |
Get the U-value of the image in pixel size x3 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_x3 (DxfImage *image, double x3) |
Set the U-value of the image in pixel size x3 of a DXF IMAGE entity. | |
double | dxf_image_get_y3 (DxfImage *image) |
Get the V-value of the image in pixel size y3 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_y3 (DxfImage *image, double y3) |
Set the V-value of the image in pixel size y3 of a DXF IMAGE entity. | |
DxfPoint * | dxf_image_get_p4 (DxfImage *image) |
Get the clip boundary vertex (in OCS) (multiple entries) p4 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_p4 (DxfImage *image, DxfPoint *p4) |
Set the clip boundary vertex (in OCS) (multiple entries) p4 of a DXF IMAGE entity. | |
double | dxf_image_get_x4 (DxfImage *image) |
Get the X-value of the clip boundary vertex (in OCS) (multiple entries) x4 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_x4 (DxfImage *image, double x4) |
Set the X-value of the clip boundary vertex (in OCS) (multiple entries) x4 of a DXF IMAGE entity. | |
double | dxf_image_get_y4 (DxfImage *image) |
Get the Y-value of the clip boundary vertex (in OCS) (multiple entries) y4 of a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_y4 (DxfImage *image, double y4) |
Set the Y-value of the clip boundary vertex (in OCS) (multiple entries) y4 of a DXF IMAGE entity. | |
int | dxf_image_get_image_display_properties (DxfImage *image) |
Get the image_display_properties value from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_image_display_properties (DxfImage *image, int image_display_properties) |
Set the image_display_properties value for a DXF IMAGE entity. | |
int | dxf_image_get_clipping_boundary_type (DxfImage *image) |
Get the clipping_boundary_type value from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_clipping_boundary_type (DxfImage *image, int clipping_boundary_type) |
Set the clipping_boundary_type value for a DXF IMAGE entity. | |
long | dxf_image_get_class_version (DxfImage *image) |
Get the class_version from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_class_version (DxfImage *image, long class_version) |
Set the class_version for a DXF IMAGE entity. | |
long | dxf_image_get_number_of_clip_boundary_vertices (DxfImage *image) |
Get the number_of_clip_boundary_vertices from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_number_of_clip_boundary_vertices (DxfImage *image, long number_of_clip_boundary_vertices) |
Set the number_of_clip_boundary_vertices for a DXF IMAGE entity. | |
int | dxf_image_get_clipping_state (DxfImage *image) |
Get the clipping_state flag value from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_clipping_state (DxfImage *image, int clipping_state) |
Set the clipping_state flag value for a DXF IMAGE entity. | |
int | dxf_image_get_brightness (DxfImage *image) |
Get the brightness value from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_brightness (DxfImage *image, int brightness) |
Set the brightness value for a DXF IMAGE entity. | |
int | dxf_image_get_contrast (DxfImage *image) |
Get the contrast value from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_contrast (DxfImage *image, int contrast) |
Set the contrast value for a DXF IMAGE entity. | |
int | dxf_image_get_fade (DxfImage *image) |
Get the fade value from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_fade (DxfImage *image, int fade) |
Set the fade value for a DXF IMAGE entity. | |
char * | dxf_image_get_imagedef_object (DxfImage *image) |
Get the imagedef_object from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_imagedef_object (DxfImage *image, char *imagedef_object) |
Set the imagedef_object for a DXF IMAGE entity. | |
char * | dxf_image_get_imagedef_reactor_object (DxfImage *image) |
Get the imagedef_reactor_object from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_imagedef_reactor_object (DxfImage *image, char *imagedef_reactor_object) |
Set the imagedef_reactor_object for a DXF IMAGE entity. | |
DxfImage * | dxf_image_get_next (DxfImage *image) |
Get the pointer to the next IMAGE entity from a DXF IMAGE entity. | |
DxfImage * | dxf_image_set_next (DxfImage *image, DxfImage *next) |
Set the pointer to the next IMAGE for a DXF IMAGE entity. | |
DxfImage * | dxf_image_get_last (DxfImage *image) |
Get the pointer to the last IMAGE entity from a linked list of DXF IMAGE entities. |
Header file for a DXF image entity (IMAGE
).
IMAGE
entity was introduced in DXF R14.
Raster image files such as JPEG, TIFF and other supported formats, cannot be stored inside an AutoCAD drawing.
The current mechanism for associating raster image files with drawings works similarly to the way external references (xrefs) are associated to drawings.
The raster image can only be referenced in the drawing.
The actual data containing information on how to represent the raster image remains in the raster image file itself.
Therefore, the raster image file must accompany the drawing file when transported, or the raster data will not be represented when the drawing is opened.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to:
Free Software Foundation, Inc.,
59 Temple Place,
Suite 330,
Boston,
MA 02111 USA.
Drawing eXchange Format (DXF) is a defacto industry standard for the exchange of drawing files between various Computer Aided Drafting programs.
DXF is an industry standard designed by Autodesk(TM).
For more details see http://www.autodesk.com.
Definition in file image.h.
typedef struct dxf_image_struct DxfImage |
Definition of an AutoCAD image entity (IMAGE
).
DxfImage* dxf_image_new | ( | ) |
Allocate memory for a DXF IMAGE
.
Fill the memory contents with zeros.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful. Definition at line 60 of file image.c.
References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init(), and dxf_image_read().
Allocate memory and initialize data fields in a DXF IMAGE
entity.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful. image | DXF image entity. |
Definition at line 98 of file image.c.
References _, dxf_binary_graphics_data_init(), dxf_binary_graphics_data_new(), DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_DEFAULT_LINETYPE_SCALE, DXF_DEFAULT_VISIBILITY, dxf_image_get_binary_graphics_data(), dxf_image_get_p0(), dxf_image_get_p1(), dxf_image_get_p2(), dxf_image_get_p3(), dxf_image_get_p4(), dxf_image_new(), dxf_image_set_binary_graphics_data(), dxf_image_set_brightness(), dxf_image_set_class_version(), dxf_image_set_clipping_boundary_type(), dxf_image_set_clipping_state(), dxf_image_set_color(), dxf_image_set_color_name(), dxf_image_set_color_value(), dxf_image_set_contrast(), dxf_image_set_dictionary_owner_hard(), dxf_image_set_dictionary_owner_soft(), dxf_image_set_elevation(), dxf_image_set_fade(), dxf_image_set_graphics_data_size(), dxf_image_set_id_code(), dxf_image_set_image_display_properties(), dxf_image_set_imagedef_object(), dxf_image_set_imagedef_reactor_object(), dxf_image_set_layer(), dxf_image_set_linetype(), dxf_image_set_linetype_scale(), dxf_image_set_lineweight(), dxf_image_set_material(), dxf_image_set_next(), dxf_image_set_number_of_clip_boundary_vertices(), dxf_image_set_p0(), dxf_image_set_p1(), dxf_image_set_p2(), dxf_image_set_p3(), dxf_image_set_p4(), dxf_image_set_paperspace(), dxf_image_set_plot_style_name(), dxf_image_set_shadow_mode(), dxf_image_set_thickness(), dxf_image_set_transparency(), dxf_image_set_visibility(), DXF_MODELSPACE, dxf_point_init(), and dxf_point_new().
Referenced by dxf_image_read().
Read data from a DXF file into a DXF IMAGE
entity.
The last line read from file contained the string "IMAGE".
Now follows some data for the IMAGE
, to be terminated with a " 0" string announcing the following entity, or the end of the ENTITY
section marker ENDSEC
.
While parsing the DXF file store data in image
.
image
. fp | DXF file pointer to an input file (or device). |
image | DXF IMAGE entity. |
Definition at line 183 of file image.c.
References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_13, dxf_image_struct::brightness, dxf_image_struct::class_version, dxf_image_struct::clipping_boundary_type, dxf_image_struct::clipping_state, dxf_image_struct::color, dxf_image_struct::contrast, dxf_image_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_image_init(), dxf_image_new(), dxf_point_init(), dxf_point_new(), dxf_image_struct::elevation, dxf_image_struct::fade, dxf_file_struct::filename, dxf_file_struct::fp, dxf_image_struct::id_code, dxf_image_struct::image_display_properties, dxf_image_struct::imagedef_object, dxf_image_struct::imagedef_reactor_object, dxf_image_struct::layer, dxf_file_struct::line_number, dxf_image_struct::linetype, dxf_image_struct::linetype_scale, dxf_point_struct::next, dxf_image_struct::number_of_clip_boundary_vertices, dxf_image_struct::p0, dxf_image_struct::p1, dxf_image_struct::p2, dxf_image_struct::p3, dxf_image_struct::p4, dxf_image_struct::paperspace, dxf_image_struct::thickness, dxf_image_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.
Write DXF output for a DXF IMAGE
entity.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. fp | DXF file pointer to an output file (or device). |
image | DXF IMAGE entity. |
Definition at line 526 of file image.c.
References _, dxf_file_struct::acad_version_number, AutoCAD_11, AutoCAD_13, AutoCAD_14, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, dxf_image_get_brightness(), dxf_image_get_class_version(), dxf_image_get_clipping_boundary_type(), dxf_image_get_clipping_state(), dxf_image_get_color(), dxf_image_get_contrast(), dxf_image_get_dictionary_owner_hard(), dxf_image_get_dictionary_owner_soft(), dxf_image_get_elevation(), dxf_image_get_fade(), dxf_image_get_id_code(), dxf_image_get_image_display_properties(), dxf_image_get_imagedef_object(), dxf_image_get_imagedef_reactor_object(), dxf_image_get_layer(), dxf_image_get_linetype(), dxf_image_get_linetype_scale(), dxf_image_get_number_of_clip_boundary_vertices(), dxf_image_get_p4(), dxf_image_get_paperspace(), dxf_image_get_thickness(), dxf_image_get_visibility(), dxf_image_get_x0(), dxf_image_get_x1(), dxf_image_get_x2(), dxf_image_get_x3(), dxf_image_get_y0(), dxf_image_get_y1(), dxf_image_get_y2(), dxf_image_get_y3(), dxf_image_get_z0(), dxf_image_get_z1(), dxf_image_get_z2(), dxf_image_set_layer(), dxf_image_set_linetype(), DXF_PAPERSPACE, dxf_file_struct::fp, dxf_point_struct::next, dxf_point_struct::x0, and dxf_point_struct::y0.
int dxf_image_free | ( | DxfImage * | image | ) |
Free the allocated memory for a DXF IMAGE
and all it's data fields.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. image | Pointer to the memory occupied by the DXF IMAGE entity. |
Definition at line 702 of file image.c.
References _, dxf_binary_graphics_data_free_chain(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_get_binary_graphics_data(), dxf_image_get_color_name(), dxf_image_get_dictionary_owner_hard(), dxf_image_get_dictionary_owner_soft(), dxf_image_get_imagedef_object(), dxf_image_get_imagedef_reactor_object(), dxf_image_get_layer(), dxf_image_get_linetype(), dxf_image_get_material(), dxf_image_get_p0(), dxf_image_get_p1(), dxf_image_get_p2(), dxf_image_get_p3(), dxf_image_get_p4(), dxf_image_get_plot_style_name(), dxf_point_free(), dxf_point_free_chain(), and dxf_image_struct::next.
Referenced by dxf_image_free_chain().
void dxf_image_free_chain | ( | DxfImage * | images | ) |
Free the allocated memory for a chain of DXF IMAGE
entities and all their data fields.
images | pointer to the chain of DXF IMAGE entities. |
Definition at line 756 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_free(), and dxf_image_struct::next.
int dxf_image_get_id_code | ( | DxfImage * | image | ) |
Get the id_code
from a DXF IMAGE
entity.
id_code
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 790 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::id_code.
Referenced by dxf_image_write().
Set the id_code
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
id_code | Identification number for the entity. This is to be an unique (sequential) number in the DXF file. |
Definition at line 828 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::id_code.
Referenced by dxf_image_init().
char* dxf_image_get_linetype | ( | DxfImage * | image | ) |
Get the linetype
from a DXF IMAGE
entity.
linetype
when sucessful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 870 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::linetype.
Referenced by dxf_image_free(), and dxf_image_write().
Set the linetype
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
linetype | a string containing the linetype for the entity. |
Definition at line 908 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::linetype.
Referenced by dxf_image_init(), and dxf_image_write().
char* dxf_image_get_layer | ( | DxfImage * | image | ) |
Get the layer
from a DXF IMAGE
entity.
layer
when sucessful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 948 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::layer.
Referenced by dxf_image_free(), and dxf_image_write().
Set the layer
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
layer | a string containing the layer for the entity. |
Definition at line 986 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::layer.
Referenced by dxf_image_init(), and dxf_image_write().
double dxf_image_get_elevation | ( | DxfImage * | image | ) |
Get the elevation
from a DXF IMAGE
entity.
elevation
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 1027 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::elevation.
Referenced by dxf_image_write().
Set the elevation
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
elevation | the elevation to be set for the entity. |
Definition at line 1058 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::elevation.
Referenced by dxf_image_init().
double dxf_image_get_thickness | ( | DxfImage * | image | ) |
Get the thickness
from a DXF IMAGE
entity.
thickness
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 1092 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::thickness.
Referenced by dxf_image_write().
Set the thickness
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
thickness | the thickness to be set for the entity. |
Definition at line 1129 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::thickness.
Referenced by dxf_image_init().
double dxf_image_get_linetype_scale | ( | DxfImage * | image | ) |
Get the linetype_scale
from a DXF IMAGE
entity.
linetype_scale
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 1169 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::linetype_scale.
Referenced by dxf_image_write().
Set the linetype_scale
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
linetype_scale | the linetype_scale to be set for the entity. |
Definition at line 1207 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::linetype_scale.
Referenced by dxf_image_init().
int16_t dxf_image_get_visibility | ( | DxfImage * | image | ) |
Get the visibility
from a DXF IMAGE
entity.
visibility
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 1248 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::visibility.
Referenced by dxf_image_write().
Set the visibility
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
visibility | the visibility to be set for the entity. |
Definition at line 1293 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::visibility.
Referenced by dxf_image_init().
int dxf_image_get_color | ( | DxfImage * | image | ) |
Get the color
from a DXF IMAGE
entity.
color
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 1341 of file image.c.
References _, dxf_image_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_write().
Set the color
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
color | the color to be set for the entity. |
Definition at line 1378 of file image.c.
References _, dxf_image_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
int dxf_image_get_paperspace | ( | DxfImage * | image | ) |
Get the paperspace
flag value from a DXF IMAGE
entity.
paperspace
flag value when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 1420 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::paperspace.
Referenced by dxf_image_write().
Set the paperspace
flag for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
paperspace | the paperspace flag value to be set for the entity. |
Definition at line 1463 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::paperspace.
Referenced by dxf_image_init().
int dxf_image_get_graphics_data_size | ( | DxfImage * | image | ) |
Get the graphics_data_size
value from a DXF IMAGE
entity.
graphics_data_size
flag value when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 1513 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::graphics_data_size.
Set the graphics_data_size
value for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
graphics_data_size | the graphics_data_size value to be set for the entity. |
Definition at line 1556 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::graphics_data_size.
Referenced by dxf_image_init().
int16_t dxf_image_get_shadow_mode | ( | DxfImage * | image | ) |
Get the shadow_mode
from a DXF IMAGE
entity.
shadow_mode
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 1605 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::shadow_mode.
Set the shadow_mode
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
shadow_mode | the shadow mode to be set for the entity. |
Definition at line 1650 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::shadow_mode.
Referenced by dxf_image_init().
DxfBinaryGraphicsData* dxf_image_get_binary_graphics_data | ( | DxfImage * | image | ) |
Get the pointer to the binary_graphics_data
from a DXF IMAGE
entity.
binary_graphics_data
when successful, or NULL
when an error occurred.image | a pointer to a DXF IMAGE entity. |
Definition at line 1701 of file image.c.
References _, dxf_image_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_free(), and dxf_image_init().
DxfImage* dxf_image_set_binary_graphics_data | ( | DxfImage * | image, |
DxfBinaryGraphicsData * | data | ||
) |
Set the pointer to the binary_graphics_data
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
data | a string containing the pointer to the binary_graphics_data for the entity. |
Definition at line 1740 of file image.c.
References _, dxf_image_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
char* dxf_image_get_dictionary_owner_soft | ( | DxfImage * | image | ) |
Get the pointer to the dictionary_owner_soft
from a DXF IMAGE
entity.
dictionary_owner_soft
when successful, or NULL
when an error occurred.image | a pointer to a DXF IMAGE entity. |
Definition at line 1785 of file image.c.
References _, dxf_image_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_free(), and dxf_image_write().
Set the pointer to the dictionary_owner_soft
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
dictionary_owner_soft | a string containing the pointer to the dictionary_owner_soft for the entity. |
Definition at line 1824 of file image.c.
References _, dxf_image_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
char* dxf_image_get_material | ( | DxfImage * | image | ) |
Get the pointer to the material
from a DXF IMAGE
entity.
material
when successful, or NULL
when an error occurred.image | a pointer to a DXF IMAGE entity. |
Definition at line 1868 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::material.
Referenced by dxf_image_free().
Set the pointer to the material
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
material | a string containing the pointer to the material for the entity. |
Definition at line 1906 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::material.
Referenced by dxf_image_init().
char* dxf_image_get_dictionary_owner_hard | ( | DxfImage * | image | ) |
Get the pointer to the dictionary_owner_hard
from a DXF IMAGE
entity.
dictionary_owner_hard
when successful, or NULL
when an error occurred.image | a pointer to a DXF IMAGE entity. |
Definition at line 1951 of file image.c.
References _, dxf_image_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_free(), and dxf_image_write().
Set the pointer to the dictionary_owner_hard
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
dictionary_owner_hard | a string containing the pointer to the dictionary_owner_hard for the entity. |
Definition at line 1990 of file image.c.
References _, dxf_image_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
int16_t dxf_image_get_lineweight | ( | DxfImage * | image | ) |
Get the lineweight
from a DXF IMAGE
entity.
lineweight
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 2032 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::lineweight.
Set the lineweight
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
lineweight | the lineweight to be set for the entity. |
Definition at line 2063 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::lineweight.
Referenced by dxf_image_init().
char* dxf_image_get_plot_style_name | ( | DxfImage * | image | ) |
Get the plot_style_name
from a DXF IMAGE
entity.
plot_style_name
when sucessful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 2097 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::plot_style_name.
Referenced by dxf_image_free().
Set the plot_style_name
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
plot_style_name | a string containing the plot_style_name for the entity. |
Definition at line 2135 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::plot_style_name.
Referenced by dxf_image_init().
long dxf_image_get_color_value | ( | DxfImage * | image | ) |
Get the color_value
from a DXF IMAGE
entity.
color_value
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 2177 of file image.c.
References _, dxf_image_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the color_value
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
color_value | the color_value to be set for the entity. |
Definition at line 2208 of file image.c.
References _, dxf_image_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
char* dxf_image_get_color_name | ( | DxfImage * | image | ) |
Get the color_name
from a DXF IMAGE
entity.
color_name
when sucessful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 2242 of file image.c.
References _, dxf_image_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_free().
Set the color_name
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
color_name | a string containing the color_name for the entity. |
Definition at line 2280 of file image.c.
References _, dxf_image_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
long dxf_image_get_transparency | ( | DxfImage * | image | ) |
Get the transparency
from a DXF IMAGE
entity.
transparency
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 2322 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::transparency.
Set the transparency
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
transparency | the transparency to be set for the entity. |
Definition at line 2353 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::transparency.
Referenced by dxf_image_init().
Get the insertion point p0
of a DXF IMAGE
entity.
p0
. image | a pointer to a DXF IMAGE entity. |
Definition at line 2386 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p0.
Referenced by dxf_image_free(), and dxf_image_init().
Set the insertion point p0
of a DXF IMAGE
entity.
IMAGE
entity. image | a pointer to a DXF IMAGE entity. |
p0 | a pointer to a DXF POINT entity. |
Definition at line 2423 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p0.
Referenced by dxf_image_init().
double dxf_image_get_x0 | ( | DxfImage * | image | ) |
Get the X-value of the insertion point x0
of a DXF IMAGE
entity.
x0
. image | a pointer to a DXF IMAGE entity. |
Definition at line 2464 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p0, and dxf_point_struct::x0.
Referenced by dxf_image_write().
Set the X-value of the insertion point x0
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
x0 | the X-value of the insertion point x0 of a DXF IMAGE entity. |
Definition at line 2504 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p0, and dxf_point_struct::x0.
double dxf_image_get_y0 | ( | DxfImage * | image | ) |
Get the Y-value of the insertion point y0
of a DXF IMAGE
entity.
y0
. image | a pointer to a DXF IMAGE entity. |
Definition at line 2546 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p0, and dxf_point_struct::y0.
Referenced by dxf_image_write().
Set the Y-value of the insertion point y0
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
y0 | the Y-value of the insertion point y0 of a DXF IMAGE entity. |
Definition at line 2586 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p0, and dxf_point_struct::y0.
double dxf_image_get_z0 | ( | DxfImage * | image | ) |
Get the Z-value of the insertion point z0
of a DXF IMAGE
entity.
z0
. image | a pointer to a DXF IMAGE entity. |
Definition at line 2628 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p0, and dxf_point_struct::z0.
Referenced by dxf_image_write().
Set the Z-value of the insertion point z0
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
z0 | the Z-value of the insertion point z0 of a DXF IMAGE entity. |
Definition at line 2668 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p0, and dxf_point_struct::z0.
Get the U-vector of a single pixel p1
of a DXF IMAGE
entity.
p1
. image | a pointer to a DXF IMAGE entity. |
Definition at line 2710 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p1.
Referenced by dxf_image_free(), and dxf_image_init().
Set the U-vector of a single pixel p1
of a DXF IMAGE
entity.
IMAGE
entity. image | a pointer to a DXF IMAGE entity. |
p1 | a pointer to a DXF POINT entity. |
Definition at line 2748 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p1.
Referenced by dxf_image_init().
double dxf_image_get_x1 | ( | DxfImage * | image | ) |
Get the X-value of the U-vector of a single pixel x1
of a DXF IMAGE
entity.
x1
. image | a pointer to a DXF IMAGE entity. |
Definition at line 2789 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p1, and dxf_point_struct::x0.
Referenced by dxf_image_write().
Set the X-value of the U-vector of a single pixel x1
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
x1 | the X-value of the U-vector of a single pixel x1 of a DXF IMAGE entity. |
Definition at line 2829 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p1, and dxf_point_struct::x0.
double dxf_image_get_y1 | ( | DxfImage * | image | ) |
Get the Y-value of the U-vector of a single pixel y1
of a DXF IMAGE
entity.
y1
. image | a pointer to a DXF IMAGE entity. |
Definition at line 2871 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p1, and dxf_point_struct::y0.
Referenced by dxf_image_write().
Set the Y-value of the U-vector of a single pixel y1
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
y1 | the Y value of the U-vector of a single pixel y1 of a DXF IMAGE entity. |
Definition at line 2911 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p1, and dxf_point_struct::y0.
double dxf_image_get_z1 | ( | DxfImage * | image | ) |
Get the Z-value of the U-vector of a single pixel z1
of a DXF IMAGE
entity.
z1
. image | a pointer to a DXF IMAGE entity. |
Definition at line 2953 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p1, and dxf_point_struct::z0.
Referenced by dxf_image_write().
Set the Z-value of the U-vector of a single pixel z1
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
z1 | the Z-value of the U-vector of a single pixel z1 of a DXF IMAGE entity. |
Definition at line 2993 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p1, and dxf_point_struct::z0.
Get the V-vector of a single pixel p2
of a DXF IMAGE
entity.
p2
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3035 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p2.
Referenced by dxf_image_free(), and dxf_image_init().
Set the V-vector of a single pixel p2
of a DXF IMAGE
entity.
IMAGE
entity. image | a pointer to a DXF IMAGE entity. |
p2 | a pointer to a DXF POINT entity. |
Definition at line 3073 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p2.
Referenced by dxf_image_init().
double dxf_image_get_x2 | ( | DxfImage * | image | ) |
Get the X-value of the V-vector of a single pixel x2
of a DXF IMAGE
entity.
x2
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3114 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p2, and dxf_point_struct::x0.
Referenced by dxf_image_write().
Set the X-value of the V-vector of a single pixel x2
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
x2 | the X-value of the V-vector of a single pixel x2 of a DXF IMAGE entity. |
Definition at line 3154 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p2, and dxf_point_struct::x0.
double dxf_image_get_y2 | ( | DxfImage * | image | ) |
Get the Y-value of the V-vector of a single pixel y2
of a DXF IMAGE
entity.
y2
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3196 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p2, and dxf_point_struct::y0.
Referenced by dxf_image_write().
Set the Y-value of the V-vector of a single pixel y2
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
y2 | the Y-value of the V-vector of a single pixel y2 of a DXF IMAGE entity. |
Definition at line 3236 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p2, and dxf_point_struct::y0.
double dxf_image_get_z2 | ( | DxfImage * | image | ) |
Get the Z-value of the V-vector of a single pixel z2
of a DXF IMAGE
entity.
z2
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3278 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p2, and dxf_point_struct::z0.
Referenced by dxf_image_write().
Set the Z-value of the V-vector of a single pixel z2
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
z2 | the Z-value of the V-vector of a single pixel z2 of a DXF IMAGE entity. |
Definition at line 3318 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p2, and dxf_point_struct::z0.
Get the U- and V-value of the image in pixel size p3
of a DXF IMAGE
entity.
p3
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3360 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p3.
Referenced by dxf_image_free(), and dxf_image_init().
Set the U- and V-value of the image in pixel size p3
of a DXF IMAGE
entity.
IMAGE
entity. image | a pointer to a DXF IMAGE entity. |
p3 | a pointer to a DXF POINT entity. |
Definition at line 3398 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p3.
Referenced by dxf_image_init().
double dxf_image_get_x3 | ( | DxfImage * | image | ) |
Get the U-value of the image in pixel size x3
of a DXF IMAGE
entity.
x3
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3439 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p3, and dxf_point_struct::x0.
Referenced by dxf_image_write().
Set the U-value of the image in pixel size x3
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
x3 | the U-value of the image in pixel size x3 of a DXF IMAGE entity. |
Definition at line 3479 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p3, and dxf_point_struct::x0.
double dxf_image_get_y3 | ( | DxfImage * | image | ) |
Get the V-value of the image in pixel size y3
of a DXF IMAGE
entity.
y3
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3521 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p3, and dxf_point_struct::y0.
Referenced by dxf_image_write().
Set the V-value of the image in pixel size y3
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
y3 | the V-value of the image in pixel size y3 of a DXF IMAGE entity. |
Definition at line 3561 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p3, and dxf_point_struct::y0.
Get the clip boundary vertex (in OCS) (multiple entries) p4
of a DXF IMAGE
entity.
p4
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3603 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p4.
Referenced by dxf_image_free(), dxf_image_init(), and dxf_image_write().
Set the clip boundary vertex (in OCS) (multiple entries) p4
of a DXF IMAGE
entity.
IMAGE
entity. image | a pointer to a DXF IMAGE entity. |
p4 | a pointer to a DXF POINT entity. |
Definition at line 3641 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::p4.
Referenced by dxf_image_init().
double dxf_image_get_x4 | ( | DxfImage * | image | ) |
Get the X-value of the clip boundary vertex (in OCS) (multiple entries) x4
of a DXF IMAGE
entity.
x4
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3683 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p4, and dxf_point_struct::x0.
Set the X-value of the clip boundary vertex (in OCS) (multiple entries) x4
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
x4 | the X-value of the clip boundary vertex (in OCS) (multiple entries) x4 of a DXF IMAGE entity. |
Definition at line 3723 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p4, and dxf_point_struct::x0.
double dxf_image_get_y4 | ( | DxfImage * | image | ) |
Get the Y-value of the clip boundary vertex (in OCS) (multiple entries) y4
of a DXF IMAGE
entity.
y4
. image | a pointer to a DXF IMAGE entity. |
Definition at line 3766 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p4, and dxf_point_struct::y0.
Set the Y-value of the clip boundary vertex (in OCS) (multiple entries) y4
of a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
y4 | the Y-value of the clip boundary vertex (in OCS) (multiple entries) y4 of a DXF IMAGE entity. |
Definition at line 3806 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_image_struct::p4, and dxf_point_struct::y0.
int dxf_image_get_image_display_properties | ( | DxfImage * | image | ) |
Get the image_display_properties
value from a DXF IMAGE
entity.
graphics_data_size
flag value when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 3849 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::image_display_properties.
Referenced by dxf_image_write().
Set the image_display_properties
value for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
image_display_properties | the image_display_properties value to be set for the entity. |
Definition at line 3893 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::image_display_properties.
Referenced by dxf_image_init().
int dxf_image_get_clipping_boundary_type | ( | DxfImage * | image | ) |
Get the clipping_boundary_type
value from a DXF IMAGE
entity.
clipping_boundary_type
value when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 3943 of file image.c.
References _, dxf_image_struct::clipping_boundary_type, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_write().
Set the clipping_boundary_type
value for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
clipping_boundary_type | the clipping_boundary_type value to be set for the entity. |
Definition at line 3987 of file image.c.
References _, dxf_image_struct::clipping_boundary_type, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
long dxf_image_get_class_version | ( | DxfImage * | image | ) |
Get the class_version
from a DXF IMAGE
entity.
class_version
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 4036 of file image.c.
References _, dxf_image_struct::class_version, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_write().
Set the class_version
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
class_version | the class_version to be set for the entity. |
Definition at line 4067 of file image.c.
References _, dxf_image_struct::class_version, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
long dxf_image_get_number_of_clip_boundary_vertices | ( | DxfImage * | image | ) |
Get the number_of_clip_boundary_vertices
from a DXF IMAGE
entity.
number_of_clip_boundary_vertices
when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 4102 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::number_of_clip_boundary_vertices.
Referenced by dxf_image_write().
DxfImage* dxf_image_set_number_of_clip_boundary_vertices | ( | DxfImage * | image, |
long | number_of_clip_boundary_vertices | ||
) |
Set the number_of_clip_boundary_vertices
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
number_of_clip_boundary_vertices | the number_of_clip_boundary_vertices to be set for the entity. |
Definition at line 4134 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::number_of_clip_boundary_vertices.
Referenced by dxf_image_init().
int dxf_image_get_clipping_state | ( | DxfImage * | image | ) |
Get the clipping_state
flag value from a DXF IMAGE
entity.
clipping_state
flag value when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 4170 of file image.c.
References _, dxf_image_struct::clipping_state, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_write().
Set the clipping_state
flag value for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
clipping_state | the clipping_state flag value to be set for the entity. |
Definition at line 4214 of file image.c.
References _, dxf_image_struct::clipping_state, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
int dxf_image_get_brightness | ( | DxfImage * | image | ) |
Get the brightness
value from a DXF IMAGE
entity.
brightness
value when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 4263 of file image.c.
References _, dxf_image_struct::brightness, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_write().
Set the brightness
value for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
brightness | the brightness value to be set for the entity. |
Definition at line 4306 of file image.c.
References _, dxf_image_struct::brightness, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
int dxf_image_get_contrast | ( | DxfImage * | image | ) |
Get the contrast
value from a DXF IMAGE
entity.
contrast
value when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 4355 of file image.c.
References _, dxf_image_struct::contrast, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_write().
Set the contrast
value for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
contrast | the contrast value to be set for the entity. |
Definition at line 4398 of file image.c.
References _, dxf_image_struct::contrast, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_image_init().
int dxf_image_get_fade | ( | DxfImage * | image | ) |
Get the fade
value from a DXF IMAGE
entity.
fade
value when successful, or EXIT_FAILURE
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 4446 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::fade.
Referenced by dxf_image_write().
Set the fade
value for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
fade | the fade value to be set for the entity. |
Definition at line 4489 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::fade.
Referenced by dxf_image_init().
char* dxf_image_get_imagedef_object | ( | DxfImage * | image | ) |
Get the imagedef_object
from a DXF IMAGE
entity.
imagedef_object
when sucessful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 4537 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::imagedef_object.
Referenced by dxf_image_free(), and dxf_image_write().
Set the imagedef_object
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
imagedef_object | a string containing the imagedef_object for the entity. |
Definition at line 4575 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::imagedef_object.
Referenced by dxf_image_init().
char* dxf_image_get_imagedef_reactor_object | ( | DxfImage * | image | ) |
Get the imagedef_reactor_object
from a DXF IMAGE
entity.
imagedef_reactor_object
when sucessful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
Definition at line 4617 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::imagedef_reactor_object.
Referenced by dxf_image_free(), and dxf_image_write().
DxfImage* dxf_image_set_imagedef_reactor_object | ( | DxfImage * | image, |
char * | imagedef_reactor_object | ||
) |
Set the imagedef_reactor_object
for a DXF IMAGE
entity.
image
when successful, or NULL
when an error occurred. image | a pointer to a DXF IMAGE entity. |
imagedef_reactor_object | a string containing the imagedef_reactor_object for the entity. |
Definition at line 4655 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::imagedef_reactor_object.
Referenced by dxf_image_init().
Get the pointer to the next IMAGE
entity from a DXF IMAGE
entity.
IMAGE
entity.image | a pointer to a DXF IMAGE entity. |
Definition at line 4699 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::next.
Set the pointer to the next IMAGE
for a DXF IMAGE
entity.
image | a pointer to a DXF IMAGE entity. |
next | a pointer to the next IMAGE for the entity. |
Definition at line 4735 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::next.
Referenced by dxf_image_init().
Get the pointer to the last IMAGE
entity from a linked list of DXF IMAGE
entities.
IMAGE
entity.image | a pointer to a DXF IMAGE entity. |
Definition at line 4778 of file image.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_image_struct::next.