Re: Saving RGB or Grayscale images from GdkPixBuf
- From: abhi rocks <badsep11 yahoo com>
- To: Michal Porzuczek <mporzuczek gmail com>, gtk-app-devel-list gnome org
- Cc:
- Subject: Re: Saving RGB or Grayscale images from GdkPixBuf
- Date: Mon, 20 Jun 2005 07:13:30 +0100 (BST)
hi
Well i dont think there is support for greyscale
images though RGB is definitely there.
Regarding saving the pixbuf. Just use
gdk_pixbuf_save()
The type refers to "jpeg", "tiff" etc.
Its pretty fast and i dont think saving the pixbuf to
a file is time consuming.
--- Michal Porzuczek <mporzuczek gmail com> wrote:
Hi
I was wondering if gdk_pixbuf_save supports saving
RGB or Grayscale
images. I have attempted to use the add_if_writiable
function that is
specified in the api reference but I just get
gibberish so I don't
think I'm doing it right.
I have tried to save RGBs by making the type
"RGB"but not knowing the
rest of the parameters I just set them to NULL and I
do have an "RGB"
file appearing where I tell it to save but
unfortunately no actual
data is being saved and I was wondering what these
additional
parameters are and if it is possible to save it in
grayscale.
Furthermore, I was interested if there may be an
even faster way to
save images, speed is the primary objective with the
image saving.
Thanks a lot,
Michal
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___________________________________________________________
Does your mail provider give you FREE antivirus protection?
Get Yahoo! Mail http://uk.mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]