diff options
Diffstat (limited to 'introduction-to-gnome/C/figures')
-rw-r--r-- | introduction-to-gnome/C/figures/Makefile | 18 | ||||
-rw-r--r-- | introduction-to-gnome/C/figures/gnome-logo-large.png | bin | 23473 -> 0 bytes | |||
-rwxr-xr-x | introduction-to-gnome/C/figures/img2eps | 58 |
3 files changed, 0 insertions, 76 deletions
diff --git a/introduction-to-gnome/C/figures/Makefile b/introduction-to-gnome/C/figures/Makefile deleted file mode 100644 index a6f3397..0000000 --- a/introduction-to-gnome/C/figures/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -#This Makefile converts all of the .png images used in the GDP -#Handbook to .eps for postscript output. The img2eps script -#converts the image and scales it to your specifications. You will -#need to determine the width you would like your image to display on -#paper before adding the image to this file. The width parameter will -#scale your image in inches. Make sure to add the new image to the -#"all" section as well. - -all: desktop.eps gnome-logo-large.eps microguiborder.eps - -desktop.eps: desktop.png - ./img2eps desktop.png - -gnome-logo-large.eps: gnome-logo-large.png - ./img2eps gnome-logo-large.png - -microguiborder.eps: microguiborder.png - ./img2eps microguiborder.png diff --git a/introduction-to-gnome/C/figures/gnome-logo-large.png b/introduction-to-gnome/C/figures/gnome-logo-large.png Binary files differdeleted file mode 100644 index 495e3c5..0000000 --- a/introduction-to-gnome/C/figures/gnome-logo-large.png +++ /dev/null diff --git a/introduction-to-gnome/C/figures/img2eps b/introduction-to-gnome/C/figures/img2eps deleted file mode 100755 index eebd959..0000000 --- a/introduction-to-gnome/C/figures/img2eps +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/perl -# -# -# convert image to Encapsulated Postscript, with possible scaling of width -# - -$width = ""; - -if ($ARGV[0] =~ /^--width=(.+)$/) { - $width = $1; - shift (@ARGV); -} - -#print "width =",$width,"\n"; - -#print "argv =",$ARGV[0],"\n"; - -$infile = $ARGV[0]; - -if (!(-e $infile)) { -print "File doesn't exist\n"; -exit 1; -} - -$imagesz = `identify $ARGV[0]`; - -($name, $size, $rest) = split / /, $imagesz, 3; -#print $name, " ", $size, " ", $rest, "\n"; -#print "imagesz = ",$size,"\n"; - -($x, $y) = split /x/, $size, 2; -($y, $rest) = split /\+/, $y, 2; - -#print $x," by ",$y, "\n"; - -# -# if width set, we need to scale -# - -if ($width != "") { - $scale = $width * (72.0/$x); -} else { - $scale = 1; -} - -$scale = 72.0/$scale; -#print "scale = ",$scale,"\n"; - -$outfile = $infile; -$outfile =~ s/\.png/\.eps/; - -#print $infile," ",$outfile,"\n"; -system("convert $infile tmpimage.pgm"); -#system("giftopnm $infile | ppmtopgm > tmpimage.pgm"); -system("convert -density $scale tmpimage.pgm $outfile"); -system("rm tmpimage.pgm"); - - |