TheSwamp
CAD Forums => CAD General => Topic started by: Andrea on September 09, 2005, 11:01:15 AM
-
Hi all,
I know there is only expert here..
I'm just trying to make a LISP to get size image informations..
TIFF,GPJ,BMP...and so on..
is this possible ?
-
Outside of defun I don't know any lisp. What you need to do though, if I understand correctly, is open a binary file and see how large the image it contains is. So you need to know where in the file to look for this data, have a look at http://freeimage.sourceforge.net/intro.html
-
wooooooo!!
a little complicaated for a newbi like me..
:?
-
Are the raster images in drawings already or do you want to get this info from files? If they are in a drawing, VBA can get you that info. If not, it probably still could. There might well be a lisp solution also but to quote a former co-worker, when your only tool is a hammer, all problems look like nails.
-
Image group codes
Group code
Description
100
Subclass marker (AcDbRasterImage)
90
Class version
10
Insertion point (in WCS)
DXF: X value; APP: 3D point
20, 30
DXF: Y and Z values of insertion point (in WCS)
11
U-vector of a single pixel (points along the visual bottom of the image, starting at the insertion point) (in WCS)
DXF: X value; APP: 3D point
21, 31
DXF: Y and Z values U-vector (in WCS)
12
V-vector of a single pixel (points along the visual left side of the image, starting at the insertion point) (in WCS)
DXF: X value; APP: 3D point
22, 32
DXF: Y and Z values of V-vector (in WCS)
13
Image size in pixels
DXF: U value; APP: 2D point (U and V values)
23
DXF: V value of image size in pixels
340
Hard reference to imagedef object
70
Image display properties:
1 = Show image
2 = Show image when not aligned with screen
4 = Use clipping boundary
8 = Transparency is on
280
Clipping state: 0 = Off; 1 = On
281
Brightness value (0-100; default = 50)
282
Contrast value (0-100; default = 50)
283
Fade value (0-100; default = 0)
360
Hard reference to imagedef_reactor object
71
Clipping boundary type. 1 = Rectangular; 2 = Polygonal
91
Number of clip boundary vertices that follow
14
Clip boundary vertex (in OCS)
DXF: X value; APP: 2D point (multiple entries)
NOTE 1) For rectangular clip boundary type, two opposite corners must be specified. Default is (–0.5,–0.5), (size.x–0.5, size.y–0.5). 2) For polygonal clip boundary type, three or more vertices must be specified. Polygonal vertices must be listed sequentially
24
DXF: Y value of clip boundary vertex (in OCS) (multiple entries)
-
se7en
hey !! this is pretty close....thanks
but is this possible to get info befor inserting the image file ?