RE: New to GTK; some beginner questions.
- From: Amit BHATNAGAR <abhatnag mda ca>
- To: "'Michael Torrie '" <torriem chem byu edu>, "''gtk-list gnome org' '" <gtk-list gnome org>
- Subject: RE: New to GTK; some beginner questions.
- Date: Tue, 2 Dec 2003 22:55:42 -0800
Thanks Michael for you helpful reply.
I have checked out the documentation for the GdkPixbuf at
http://gtkmm.sourceforge.net/gtkmm2/docs/reference/html/classGdk_1_1Pixbuf.h
tml
and I cannot find any information about the image manipulation services
that I require, Am I looking in the wrong spot?
I've read up a bit on ImageMagick and I have found Magick++ (C++ API to
ImageMagick) and if GdkPixbuf cannot perform the requested operations,
I think I can use Magick++; it looks like I would have to encode my image
first to a jpeg and let Magick++ load it (either from file or BLOB) and
then it should be able to perform the operations.
I hope it is as simple as linking this library with my app.
Also, I have tried making a simple app like you suggested so I can get
familiar with GTK/Glade--, however when I run my executable, no UI
appears - it just hangs and nothing appears! I will investigate further.
thanks again,
amit.
-----Original Message-----
From: Michael Torrie
To: 'gtk-list gnome org'
Sent: 02/12/03 6:12 PM
Subject: Re: New to GTK; some beginner questions.
On Tue, 2003-12-02 at 12:23, Amit BHATNAGAR wrote:
> Hi all.
>
> I am considering using GTK+ to develop an app for Solaris 8, and I
> could use some help in answering some of my questions that would allow
> me to make a decision on whether or not to use GTK+. I have searched
> the FAQ & online docs, however if any of my questions have documented
> answers that I failed to find, please point me in the right direction.
>
> The app that I would be creating would largely deal with viewing radar
> images, and I would require to do some image manipulation, (zoom, pan,
> filtering, contrast, brightness, display multiple images, edge
detection,
> mirror, etc). I would like to use GTKmm (and Glademm) as C++ would be
> my primary development language of choice.
>
> #1 Does GTK provide an API that I can use to perform the above
operations?
> Since GTK is closely connected with GIMP, is it possible to use GIMP
to
> achieve this? (assuming that GIMP has an API). I have read the
documentation
> for GtkImage and even GdkPixmap, but nothing would suggest that image
> manipulation is possible from these.
GdkPixmap is going away. The replacement you should use is GdkPixbuf
which has all kinds of functions for scaling and manipulation, including
alpha-compositing of alpha-channel pixbufs. GdkPixbuf has built-in
loaders for a variety of image formats and does let you manipulate it
on a pixel level. You could then apply your own matrix
transformations. You then typically draw the GdkPixbuf onto a
GtkDrawingArea widget.
>
> #2 Is my only other alternative to use a library like ImageMagick to
> perform these operations? Is there a GTK(mm) interface for this? I
have
> found GDKMagick but this seems to be very old (obsolete?). There is
also
> Magic++, but again I don't know how this integrates well within a GTK
app.
> Is there any better alternative than ImageMagick?
GdkPixbuf works very well as I mentioned, but ImageMagick has been a
very good library too (not to be confused with GdkImageMagick). I'm
pretty sure ImageMagick can integrate with GTK. GtkMM has a full
object-oriented version of GdkPixbuf which I've used before and it's
quite workable.
I think GTK and GTK-- would work very well for you. If you do a small
test program to get familiar with the toolkit you should be able to
determine if it has the vital features you need.
Michael
>
> Thanks in advance for your assistance.
>
> amit.
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
--
Michael Torrie <torriem chem byu edu>
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]