Re: [Gimp-developer] Read/write plugin

2004-07-05 Thread Soren Hauberg
Hi again
Thanks for all the reply's - that was really fast.
Anyway, I'll be looking into the bmp plug-in and then I'll properbly 
come running for help again.

Thanks all,
Søren
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Read/write plugin

2004-07-05 Thread Sven Neumann
Hi,

Shlomi Fish <[EMAIL PROTECTED]> writes:

> If there's an API function that you don't understand you can look at
> its description in the header files and source code under
> "libgimp/", "libgimpbase", etc. grep is your friend.

I also suggest you use the API documentation which can be found in the
GIMP source tree in the devel-docs folder or online at

  http://developer.gimp.org/api/2.0/


Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Read/write plugin

2004-07-04 Thread Jeff Trefftzs
On Sun, 2004-07-04 at 11:23, Soren Hauberg wrote:
> Hi everybody
> This is my first post to this list, so please be gentle :-)
> I'm a student of computer science at the University of Copenhagen (DIKU) 
> working mostly with image processing. At DIKU we have a rather old image 
> C library and hence quite a bit images stored in the image format used 
> in this library.
> I'd like to be able to read and write this kind of images in gimp, but 
> how do I get started?

You didn't say what format the C library uses:  perhaps it's one of the
many for which conversion programs already exist.  If you are running on
a *nix system (Unix, Linux, BSD, Solaris ...) the portable bitmap
package may already have a conversion program.  And then there's always
ImageMagick, which also can convert to and from innumerable image
formats.

If the issue is more one of learning how to write a Gimp plug-in, other
messages in this thread will probably be of more help.

HTH,

-- 
Jeff


___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Read/write plugin

2004-07-04 Thread David Neary
Hi Soren,

Soren Hauberg wrote:
> I'd like to be able to read and write this kind of images in gimp, but 
> how do I get started?

I did a presentation on writing plug-ins in GUADEC - *very* basic
but there is a sample plug-in included. The paper is online at
http://dneary.free.fr/gimp

> I guess I have to write a plugin but the docs a rather outdated (at 
> least the ones I can find). Any hints on how to get started would be 
> appreciated.

Your best bet, once you know the basics of a plug-in, is to pick
an existing file plug-in that does a simple format. The one I
usually reccommend is pnm - in the GIMP sources, this is in
plug-ins/common/pnm.c. This is good because it shows the basics
of saving and writing an image without having the overhead of
using a 3rd party library, or having file format overhead
involved.

Cheers,
Dave.

-- 
David Neary,
Lyon, France
   E-Mail: [EMAIL PROTECTED]
CV: http://dneary.free.fr/CV/
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Read/write plugin

2004-07-04 Thread Shlomi Fish
On Sunday 04 July 2004 21:23, Soren Hauberg wrote:
> Hi everybody
> This is my first post to this list, so please be gentle :-)
> I'm a student of computer science at the University of Copenhagen (DIKU)
> working mostly with image processing. At DIKU we have a rather old image
> C library and hence quite a bit images stored in the image format used
> in this library.
> I'd like to be able to read and write this kind of images in gimp, but
> how do I get started?
> I guess I have to write a plugin but the docs a rather outdated (at
> least the ones I can find). Any hints on how to get started would be
> appreciated.

Well, first you should probably take a look at the source of existing plug-ins 
for image input and output. For example, you can find the Windows BMP 
Read/Write plugin under "plug-ins/bmp" (starting from the GIMP distribution 
or CVS tree). BMP is a relatively simple format and the code of its plug-in 
should be easy to understand. Other formats' read/write plug-ins can be found 
under "plug-ins/common" and somewhere under "plug-ins".

If there's an API function that you don't understand you can look at its 
description in the header files and source code under "libgimp/", 
"libgimpbase", etc. grep is your friend.

Note that I haven't done too much GIMP developments, and there are other 
people here who can give you more expert advice. This advice is just off the 
top of my head.

Regards,

Shlomi Fish


>
> Regards,
> Sרren
> ___
> Gimp-developer mailing list
> [EMAIL PROTECTED]
> http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

-- 

-
Shlomi Fish  [EMAIL PROTECTED]
Homepage:http://shlomif.il.eu.org/

Knuth is not God! It took him two days to build the Roman Empire.
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer