Re: line

2001-01-15 Thread Rebecca J. Walter

use the pencil or the paintbrush.  click, press and hold shift, click at
the end point.  instant straight line.



Re: 1.1.21 libgimp/gimp.c, line 202

2000-05-10 Thread Alex Harford

On Mon, 8 May 2000, Mike Markowski wrote:

 Hey all,
 
 The source code line referenced in this email subject line
 is
 gimp_signal_private (SIGHUP,  gimp_plugin_signalhandler,
   SA_RESETHAND | SA_NOMASK);
 
 In Solaris 8, while signal.h defines SA_RESETHAND there is no
 sign of SA_NOMASK.
 
 Can someone on a linux box tell me what SA_NOMASK is for so that I can
 make the needed fix and get libgimp to compile?  (Is it just zero?)

Mike, this has been discussed on the gimp-developer mailing list.  It will
be fixed on everything else, but IIRC for Solaris it's SA_NODEFER...

-
Alex HarfordTel: (604) 937-7601
http://www.dowco.com/~alexh Fax: (604) 937-7641
[EMAIL PROTECTED]




1.1.21 libgimp/gimp.c, line 202

2000-05-08 Thread Mike Markowski

Hey all,

The source code line referenced in this email subject line
is
  gimp_signal_private (SIGHUP,  gimp_plugin_signalhandler,
SA_RESETHAND | SA_NOMASK);

In Solaris 8, while signal.h defines SA_RESETHAND there is no
sign of SA_NOMASK.

Can someone on a linux box tell me what SA_NOMASK is for so that I can
make the needed fix and get libgimp to compile?  (Is it just zero?)

Thanks!
Mike



Selection regions with bezier tool and seeing the line ?

2000-03-25 Thread Markus Fischer

Hello,

I'm using the 'Select regions using bezier curves'-Tool to select
big part of images at once just with straigt lines. But unlike
the pencil tool, where you can draw straigt lines when holding
down shift and which shows you where the line actually goes, very
helpful, you don't see a line where it would go.

Is there a way to actually _see_ where you selection line will go
?

kind regards,
Markus


-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
- Free Software For A Free World -



Gimp-perl: drawing a line and refreshing the gradients

1999-12-17 Thread josvanr

Hi!


I'm learning to write Gimp-perl scripts. Just now, I 
tried to draw a line with a width of one pixel. From within 
gimp this can be done by selecting the 'Circle (01)' brush.
However, when I do this in a script, the line width drawn gets
to be two pixels wide. I can't figure out how to change this
behaviour.

Second, In my script, I generate a custom gradient: I just
put some numers in a text file. Now, I'd like to use this gradient
from that point on, but as it turns out, I can't use it, until
I pressed 'refresh' from the gradients editor. Is there any 
way of 'refreshing' the gradients from a perls script, without
user interaction?

I included the test script I used, below; maybe some of you
have a good tip for me

regards,

Jos van Riswick

[EMAIL PROTECTED]



#!/usr/bin/perl
   use Gimp qw( :auto );
   Gimp::init;

$NX=400; $NY=30;
$image = new Image ($NX,$NY,RGB);
$layer0 = $image-layer_new ($NX,$NY,0,"x",100,0);
$layer0-edit_clear;
$layer0-add_layer(0);

# Generate a custom gradient
MyGradient(0.5, 1,1,0, 0,0,0 );
gimp_gradients_set_active("MyGradient");
gimp_blend($layer0,CUSTOM,0,0,100,0,0,1,3,2,0,40,100,60);

# Draw a line
gimp_brushes_set_opacity (100);
gimp_brushes_set_paint_mode (0);
gimp_brushes_set_spacing (1);
gimp_brushes_set_brush("Circle (01)");
gimp_palette_set_foreground ("orange");
gimp_paintbrush ($layer0,0,1,[3,3,$NX-3,3],0,0);
# gimp_paintbrush_default ($layer0,1,[3,3,$NX-3,3]);
# $layer0-set_pixel(3,3,24,[0,0,0]);

$layer0-file_xpm_save(("/root/pl/test.xpm")x2);




# $c=ConvertColor("blue");
# $c=ConvertColor([245,0,34]);
# print @$c; print $$c[1];
sub ConvertColor {
  my ($retval,$oldcol);
  print "$color\n";
  $oldcol=gimp_palette_get_background();
  gimp_palette_set_background($_[0]);
  $retval=gimp_palette_get_background();
  gimp_palette_set_background($oldcol);
  return $retval;
}

sub MyGradient {
  my ($center,$r1,$g1,$b1,$r2,$g2,$b2)=@_;
  open(OUT,'/root/.gimp-1.1/gradients/MyGradient');
  print OUT "GIMP Gradient\n"; 
  print OUT "1\n";
  print OUT "0 $center 1 $r1 $g1 $b1 1 $r2 $g2 $b2 1 0 0\n";
  close(OUT);
}



Re: Command line text-gif program?

1999-11-25 Thread Thierry Michalowski

Try ImageMagick. There is a program called "convert" that does more
things that you could imagine doing on graphical dataI suppose you
could easily play with it to achieve what you want.
Hope this Helps
Thierry Michalowski

Ben Escoto wrote:

 Is there any program (gimp related or not) that accepts some
 text on the command line and writes a gif?  For my purposes, it would
 just have accept the text, font, and size as inputs, and return a gif
 that text in black on a transparent background.

 Of course, other people might find useful a program that could
 accept the background and foreground color as an argument.  A simple
 program like this would seem very useful for many web designers.  If
 there were another program that just made another gif from two gifs
 just by layering them on top of one another, most titles and
 navigation bars could be done quite easily automatically.

 I've looked at the GIMP documentation and it seems something
 like this shouldn't be hard to do.  However, at this point I only use
 gimp occasionally and, am not familiar enough with the internals to
 write scripts for it.

 In general it would surprise me if there isn't something that
 already does this.  Has anyone heard of one?  I am familiar with gFont
 (http://www.engelschall.com/sw/gfont/) but this requires TeX available
 (pk) fonts while the gimp can use any font available to the X server
 including (importantly) truetype fonts.

 Anyway, thanks for any information on this.

 --
 Ben Escoto



Re: Command line text-gif program?

1999-11-25 Thread Ben Escoto

 "ML" == Marc Lehmann [EMAIL PROTECTED]
 wrote the following on Thu, 25 Nov 1999 15:35:19 +0100

Is there any program (gimp related or not) that accepts some
   text on the command line and writes a gif?

  ML imagemagick's convert program. e.g.:

  ML convert label:"Hallo, World!" output.gif

  ML (there are multitudes of variations, like using -pen and -draw
  ML commands, boxes etc..)

Thanks greatly to both you and Thierry Michalows.  This makes
it really easy to add titles or buttons to web pages.  Now I have a
filter set up so you can say

python Text("Hello, World") /python

or other python commands in an html file and get the right response.
If anyone is interested, you can download the simple python script at:

http://www.stanford.edu/~bescoto/epython/


--
Ben Escoto