libDXF 0.0.1
A library with DXF related functions written in C.
Data Structures | Typedefs | Functions

image.h File Reference

Header file for a DXF image entity (IMAGE). More...

#include "global.h"
#include "binary_graphics_data.h"
#include "point.h"
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

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

DxfImagedxf_image_new ()
 Allocate memory for a DXF IMAGE.
DxfImagedxf_image_init (DxfImage *image)
 Allocate memory and initialize data fields in a DXF IMAGE entity.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_image_set_shadow_mode (DxfImage *image, int16_t shadow_mode)
 Set the shadow_mode for a DXF IMAGE entity.
DxfBinaryGraphicsDatadxf_image_get_binary_graphics_data (DxfImage *image)
 Get the pointer to the binary_graphics_data from a DXF IMAGE entity.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_image_set_transparency (DxfImage *image, long transparency)
 Set the transparency for a DXF IMAGE entity.
DxfPointdxf_image_get_p0 (DxfImage *image)
 Get the insertion point p0 of a DXF IMAGE entity.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_image_set_z0 (DxfImage *image, double z0)
 Set the Z-value of the insertion point z0 of a DXF IMAGE entity.
DxfPointdxf_image_get_p1 (DxfImage *image)
 Get the U-vector of a single pixel p1 of a DXF IMAGE entity.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfPointdxf_image_get_p2 (DxfImage *image)
 Get the V-vector of a single pixel p2 of a DXF IMAGE entity.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfPointdxf_image_get_p3 (DxfImage *image)
 Get the U- and V-value of the image in pixel size p3 of a DXF IMAGE entity.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_image_set_y3 (DxfImage *image, double y3)
 Set the V-value of the image in pixel size y3 of a DXF IMAGE entity.
DxfPointdxf_image_get_p4 (DxfImage *image)
 Get the clip boundary vertex (in OCS) (multiple entries) p4 of a DXF IMAGE entity.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_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.
DxfImagedxf_image_set_imagedef_reactor_object (DxfImage *image, char *imagedef_reactor_object)
 Set the imagedef_reactor_object for a DXF IMAGE entity.
DxfImagedxf_image_get_next (DxfImage *image)
 Get the pointer to the next IMAGE entity from a DXF IMAGE entity.
DxfImagedxf_image_set_next (DxfImage *image, DxfImage *next)
 Set the pointer to the next IMAGE for a DXF IMAGE entity.
DxfImagedxf_image_get_last (DxfImage *image)
 Get the pointer to the last IMAGE entity from a linked list of DXF IMAGE entities.

Detailed Description

Header file for a DXF image entity (IMAGE).

Author:
Copyright (C) 2013, 2014, 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Since:
The IMAGE entity was introduced in DXF R14.
Warning:
The image entity requires AutoCAD version R14 or higher.
IMAGE entity

Introduction.

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.

Version:
According to DXF R10 (backward compatibility).
According to DXF R11 (backward compatibility).
According to DXF R12 (backward compatibility).
According to DXF R13 (backward compatibility).
According to DXF R14.

Copyright Notices.


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 Documentation

typedef struct dxf_image_struct DxfImage

Definition of an AutoCAD image entity (IMAGE).


Function Documentation

DxfImage* dxf_image_new ( )

Allocate memory for a DXF IMAGE.

Fill the memory contents with zeros.

Returns:
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().

DxfImage* dxf_image_init ( DxfImage image)

Allocate memory and initialize data fields in a DXF IMAGE entity.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.
Parameters:
imageDXF 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().

Here is the call graph for this function:

DxfImage* dxf_image_read ( DxfFile fp,
DxfImage image 
)

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.

Returns:
a pointer to image.
Parameters:
fpDXF file pointer to an input file (or device).
imageDXF 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.

Here is the call graph for this function:

int dxf_image_write ( DxfFile fp,
DxfImage image 
)

Write DXF output for a DXF IMAGE entity.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.

Todo:
for version R14.
Implementing the start of application-defined group "{application_name", with Group code 102.
For example: "{ACAD_REACTORS" indicates the start of the AutoCAD persistent reactors group.

application-defined codes: Group codes and values within the 102 groups are application defined (optional).

End of group, "}" (optional), with Group code 102.

Parameters:
fpDXF file pointer to an output file (or device).
imageDXF 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.

Here is the call graph for this function:

int dxf_image_free ( DxfImage image)
void dxf_image_free_chain ( DxfImage images)

Free the allocated memory for a chain of DXF IMAGE entities and all their data fields.

Parameters:
imagespointer 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.

Here is the call graph for this function:

int dxf_image_get_id_code ( DxfImage image)

Get the id_code from a DXF IMAGE entity.

Returns:
id_code when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_id_code ( DxfImage image,
int  id_code 
)

Set the id_code for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
id_codeIdentification 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.

Returns:
linetype when sucessful, or NULL when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_linetype ( DxfImage image,
char *  linetype 
)

Set the linetype for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
linetypea 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.

Returns:
layer when sucessful, or NULL when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_layer ( DxfImage image,
char *  layer 
)

Set the layer for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
layera 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.

Returns:
elevation when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_elevation ( DxfImage image,
double  elevation 
)

Set the elevation for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
elevationthe 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.

Returns:
thickness when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_thickness ( DxfImage image,
double  thickness 
)

Set the thickness for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
thicknessthe 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.

Returns:
linetype_scale when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_linetype_scale ( DxfImage image,
double  linetype_scale 
)

Set the linetype_scale for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
linetype_scalethe 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.

Returns:
visibility when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_visibility ( DxfImage image,
int16_t  visibility 
)

Set the visibility for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
visibilitythe 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.

Returns:
color when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_color ( DxfImage image,
int  color 
)

Set the color for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
colorthe 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.

Returns:
paperspace flag value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_paperspace ( DxfImage image,
int  paperspace 
)

Set the paperspace flag for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
paperspacethe 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.

Returns:
graphics_data_size flag value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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.

DxfImage* dxf_image_set_graphics_data_size ( DxfImage image,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
graphics_data_sizethe 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.

Returns:
shadow_mode when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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.

DxfImage* dxf_image_set_shadow_mode ( DxfImage image,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
shadow_modethe 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.

Returns:
a pointer to the binary_graphics_data when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagea 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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
dataa 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.

Returns:
a pointer to dictionary_owner_soft when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
dictionary_owner_softa 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.

Returns:
a pointer to material when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagea 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().

DxfImage* dxf_image_set_material ( DxfImage image,
char *  material 
)

Set the pointer to the material for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
materiala 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.

Returns:
a pointer to dictionary_owner_hard when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
dictionary_owner_harda 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.

Returns:
lineweight when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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.

DxfImage* dxf_image_set_lineweight ( DxfImage image,
int16_t  lineweight 
)

Set the lineweight for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
lineweightthe 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.

Returns:
plot_style_name when sucessful, or NULL when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_plot_style_name ( DxfImage image,
char *  plot_style_name 
)

Set the plot_style_name for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
plot_style_namea 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.

Returns:
color_value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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.

DxfImage* dxf_image_set_color_value ( DxfImage image,
long  color_value 
)

Set the color_value for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
color_valuethe 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.

Returns:
color_name when sucessful, or NULL when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_color_name ( DxfImage image,
char *  color_name 
)

Set the color_name for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
color_namea 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.

Returns:
transparency when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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.

DxfImage* dxf_image_set_transparency ( DxfImage image,
long  transparency 
)

Set the transparency for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
transparencythe 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().

DxfPoint* dxf_image_get_p0 ( DxfImage image)

Get the insertion point p0 of a DXF IMAGE entity.

Returns:
the insertion point p0.
Parameters:
imagea 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().

DxfImage* dxf_image_set_p0 ( DxfImage image,
DxfPoint p0 
)

Set the insertion point p0 of a DXF IMAGE entity.

Returns:
a pointer to a DXF IMAGE entity.
Parameters:
imagea pointer to a DXF IMAGE entity.
p0a 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.

Returns:
the X-value of the insertion point x0.
Parameters:
imagea 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().

DxfImage* dxf_image_set_x0 ( DxfImage image,
double  x0 
)

Set the X-value of the insertion point x0 of a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
x0the 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.

Returns:
the Y-value of the insertion point y0.
Parameters:
imagea 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().

DxfImage* dxf_image_set_y0 ( DxfImage image,
double  y0 
)

Set the Y-value of the insertion point y0 of a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
y0the 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.

Returns:
the Z-value of the insertion point z0.
Parameters:
imagea 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().

DxfImage* dxf_image_set_z0 ( DxfImage image,
double  z0 
)

Set the Z-value of the insertion point z0 of a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
z0the 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.

DxfPoint* dxf_image_get_p1 ( DxfImage image)

Get the U-vector of a single pixel p1 of a DXF IMAGE entity.

Returns:
the U-vector of a single pixel p1.
Parameters:
imagea 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().

DxfImage* dxf_image_set_p1 ( DxfImage image,
DxfPoint p1 
)

Set the U-vector of a single pixel p1 of a DXF IMAGE entity.

Returns:
a pointer to a DXF IMAGE entity.
Parameters:
imagea pointer to a DXF IMAGE entity.
p1a 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.

Returns:
the X-value of the U-vector of a single pixel x1.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
x1the 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.

Returns:
the Y-value of the U-vector of a single pixel y1.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
y1the 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.

Returns:
the Z-value of the U-vector of a single pixel z1.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
z1the 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.

DxfPoint* dxf_image_get_p2 ( DxfImage image)

Get the V-vector of a single pixel p2 of a DXF IMAGE entity.

Returns:
the V-vector of a single pixel p2.
Parameters:
imagea 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().

DxfImage* dxf_image_set_p2 ( DxfImage image,
DxfPoint p2 
)

Set the V-vector of a single pixel p2 of a DXF IMAGE entity.

Returns:
a pointer to a DXF IMAGE entity.
Parameters:
imagea pointer to a DXF IMAGE entity.
p2a 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.

Returns:
the X-value of the V-vector of a single pixel x2.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
x2the 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.

Returns:
the Y-value of the V-vector of a single pixel y2.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
y2the 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.

Returns:
the Z-value of the V-vector of a single pixel z2.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
z2the 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.

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.

Returns:
the U- and V-value of the image in pixel size p3.
Parameters:
imagea 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().

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.

Returns:
a pointer to a DXF IMAGE entity.
Parameters:
imagea pointer to a DXF IMAGE entity.
p3a 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.

Returns:
the U-value of the image in pixel size x3.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
x3the 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.

Returns:
the V-value of the image in pixel size y3.
Parameters:
imagea 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().

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
y3the 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.

DxfPoint* dxf_image_get_p4 ( DxfImage image)

Get the clip boundary vertex (in OCS) (multiple entries) p4 of a DXF IMAGE entity.

Returns:
the clip boundary vertex (in OCS) (multiple entries) p4.
Parameters:
imagea 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().

DxfImage* dxf_image_set_p4 ( DxfImage image,
DxfPoint p4 
)

Set the clip boundary vertex (in OCS) (multiple entries) p4 of a DXF IMAGE entity.

Returns:
a pointer to a DXF IMAGE entity.
Parameters:
imagea pointer to a DXF IMAGE entity.
p4a 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.

Returns:
the X-value of the clip boundary vertex (in OCS) (multiple entries) x4.
Parameters:
imagea 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.

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
x4the 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.

Returns:
the Y-value of the clip boundary vertex (in OCS) (multiple entries) y4.
Parameters:
imagea 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.

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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
y4the 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.

Returns:
graphics_data_size flag value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_image_display_properties ( DxfImage image,
int  image_display_properties 
)

Set the image_display_properties value for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
image_display_propertiesthe 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.

Returns:
clipping_boundary_type value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_clipping_boundary_type ( DxfImage image,
int  clipping_boundary_type 
)

Set the clipping_boundary_type value for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
clipping_boundary_typethe 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.

Returns:
class_version when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_class_version ( DxfImage image,
long  class_version 
)

Set the class_version for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
class_versionthe 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.

Returns:
number_of_clip_boundary_vertices when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
number_of_clip_boundary_verticesthe 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.

Returns:
clipping_state flag value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_clipping_state ( DxfImage image,
int  clipping_state 
)

Set the clipping_state flag value for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
clipping_statethe 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.

Returns:
brightness value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_brightness ( DxfImage image,
int  brightness 
)

Set the brightness value for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
brightnessthe 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.

Returns:
contrast value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_contrast ( DxfImage image,
int  contrast 
)

Set the contrast value for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
contrastthe 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.

Returns:
fade value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_fade ( DxfImage image,
int  fade 
)

Set the fade value for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
fadethe 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.

Returns:
imagedef_object when sucessful, or NULL when an error occurred.
Parameters:
imagea 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().

DxfImage* dxf_image_set_imagedef_object ( DxfImage image,
char *  imagedef_object 
)

Set the imagedef_object for a DXF IMAGE entity.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
imagedef_objecta 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.

Returns:
imagedef_reactor_object when sucessful, or NULL when an error occurred.
Parameters:
imagea 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.

Returns:
a pointer to image when successful, or NULL when an error occurred.
Parameters:
imagea pointer to a DXF IMAGE entity.
imagedef_reactor_objecta 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().

DxfImage* dxf_image_get_next ( DxfImage image)

Get the pointer to the next IMAGE entity from a DXF IMAGE entity.

Returns:
pointer to the next IMAGE entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagea 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.

DxfImage* dxf_image_set_next ( DxfImage image,
DxfImage next 
)

Set the pointer to the next IMAGE for a DXF IMAGE entity.

Parameters:
imagea pointer to a DXF IMAGE entity.
nexta 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().

DxfImage* dxf_image_get_last ( DxfImage image)

Get the pointer to the last IMAGE entity from a linked list of DXF IMAGE entities.

Returns:
pointer to the last IMAGE entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagea 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.