Philip,

With the recent upgrade to 3.7 I saw improved bitmap import
capability.  Good enough I can finally put the company logo on
the drawing. *smiles*

It looked good so I created a new library object that included
the bitmap image and used the object in a drawing.  I made
sure I saved the technology page as well as the drawing.

Next time I started xcircuit, it blinked on the screen,
disappeared, and the xterm reported "segmentation fault".
I poked around and determined if I removed the line in the
.lps file for the bitmap, xcircuit would run.  And xcircuit has
no problem loading the drawing with the bitmap.  I tried changing
the path to the bitmap to an absolute path - still didn't
work.

So it seems the bitmap can only exist in the "user" library
associated with a particular drawing.  If the same object is
added to a "system" technology page, xcircuit won't start.

Bug?

Definitely.

Limitation?

Clearly.

Or user error?  *smiles*

Not at all.

I have been using corporate logo graphics for some time now in drawings.
Had I ever saved those to a library, I would have immediately seen this
error.  Graphic image data were not being saved along with .lps files,
only with the standard .ps files, and calls to graphic elements for
which the data were not loaded would cause an immediate crash.  I have
corrected both errors.  The fixed distribution is in "git", and the
tarball will be regenerated tonight.

Complicated effects can be realized with a "clipmask", which is also
a new feature of XCircuit.  I create a gradient color field with the
"gradient" command (which only works on the command line, as yet),
then draw a clipmask over it to get the MultiGiG company logo (file
attached---this will probably get stripped off in the email list
distribution).

                                                Regards,
                                                Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: [email protected]    |
| Open Circuit Design, Inc.      | web:   http://opencircuitdesign.com |
| 22815 Timber Creek Lane        | phone: (301) 528-5030               |
| Clarksburg, MD 20871-4001      | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+
%! PostScript set of library objects for XCircuit
%  Version: 3.8
%  Library name is: logos
%  Author:  <[email protected]>
%


% XCircuitLib library objects
%imagedata 100 100
currentfile /ASCII85Decode filter /FlateDecode filter
/ReusableStreamDecode filter
GQI3Ykr'4U!/BI%,Y=.EOX*M]8<P5iZ=hLP4_sbmFcJ1g@huD=bq-G[DW1K?chEsm$D+&ZUEhP_^B]p+
O!"rMP$9(=>\c,\*(Xd"5TON&:4Y<B^&8f-5\e=oj8ib*#GcniSOSD;Bq7_l"'m9gcj"B2SNn/cs*=`h
T\G\@D;\I($0"3>NsYB-3MQi-_!PGa`.?-=1Xpt>9.%#s4+.m#"'PR<a91"pIRjQb#HSIAZ3RI-#6o%u
cj&nIg)pmdI'Z*Z(coom2K400']MCGn1!FLZeSt["*l,(O9b,t,EN*NN7oEbjH&#g%ZEF=Taa+(F$L]n
(jA4dE#+C")L1o1$#uVW_?kM'<B("ni:3TNi]tne$gPOWGnIE7-WB1>#E#G*+V2)@V]cL3ST.":.%,'B
*LQMa5T=r+l[_#l3p2&Vi%:LP2":Eu(ZI^5]GL-hYA>9.^l&@<`.@I_+4Pj1IlXleQ]$<K!u4IXa9*4n
999?-QS0Hl"=f`]%D5jN5TH_+#s]O+)6AEJn9QqtEM.V8#^'N,<"3^&butD45g=T\nj']s*R_aXNA/;%
g5Rf9J^$_;["3Fj&VpO3>7npYQZZMo#2X9*66)r]^4\Q:.p<I#i58;(i]tCV'^EJOX9%%ja5%TNJ]>A?
jFMR9*i+?_qf.Do:&Aq/!saZ0BEOk;&eG;:%hk$0Y*okE%=Iu""`^3scX2J1rrBfl3Ca~>
/gradient00data exch def
/gradient00 <<
  /ImageType 1 /Width 100 /Height 100 /BitsPerComponent 8
  /MultipleDataSources false
  /Decode [0 1 0 1 0 1]
  /ImageMatrix [1 0 0 -1 50 50]
  /DataSource gradient00data >> def

/logos::mgig_logo {
begingate
-536 -232 beginpath
-654 -231 -752 -134 -752 -16 curveto
-751 102 -654 200 -536 200 curveto
-417 
199 -320 102 -320 -16 curveto
-320 -134 -417 -231 -536 -232 curveto
-536 -240 1 polyc
-404 -239 
-296 -131 -296 0 curveto
-296 131 -404 239 -536 240 curveto
-667 240 -775 131 -776 0 curveto
-776 -131 
-667 -239 -536 -240 curveto
2545 1.000 endpath
/gradient00 5.000 0 -536 0 graphic
497 1.000 -664 -136 -648 -136 -632 -16 -568 -140 -504 -12 -480 -136 -464 -136 
-496 40 -568 -108 -640 40 -664 -136 11 polygon
496 1.000 136 40 136 -136 152 -136 152 40 4 polygon
496 1.000 496 -8 496 -136 512 -136 512 -8 4 polygon
497 1.000 504 32 12 0.000 360.000 xcarc
497 1.000 -176 -136 -176 40 -160 40 -160 -120 -88 -120 -88 -136 -176 -136 7 
polygon
497 1.000 24 24 64 24 64 40 -32 40 -32 24 8 24 8 -136 24 -136 24 24 9 polygon
409 4 beginpath
378 47 317 56 275 25 curveto
232 -5 223 -66 254 -108 curveto
285 -151 346 -160 
388 -129 curveto
412 -111 426 -84 427 -55 curveto
348 -56 1 polyc
408 -72 348 -72 2 polyc
398 
-114 354 -140 311 -129 curveto
269 -118 243 -74 254 -31 curveto
265 10 309 36 352 25 curveto
369 20 385 
10 396 -4 curveto
496 1.000 endpath
-280 -92 beginpath
-264 -92 -264 32 -280 32 3 polyc
-264 -120 -291 -144 -324 
-144 curveto
-356 -143 -384 -120 -384 -92 curveto
-368 -92 -368 32 -384 32 3 polyc
-368 -110 
-348 -125 -324 -126 curveto
-299 -126 -280 -110 -280 -92 curveto
497 1.000 endpath
598 4 beginpath
629 47 690 56 732 25 curveto
775 -5 784 -66 753 -108 curveto
722 -151 661 -160 
619 -129 curveto
595 -111 581 -84 580 -55 curveto
660 -56 1 polyc
600 -72 660 -72 2 polyc
609 
-114 653 -140 696 -129 curveto
738 -118 764 -74 753 -31 curveto
742 10 698 36 655 25 curveto
638 20 622 
10 611 -4 curveto
496 1.000 endpath
endgate
} def


% EndLib
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to