On Wed, 2009-01-07 at 14:34 +, jcup...@gmail.com wrote:
> Hi again,
>
> 2009/1/7 Luka Napotnik :
> > Here's a sample code that fails:
>
> I had a look at the docs and MagickReadImageBlob() probably isn't the
> right bit of API. It expects the data to be in a contaner format, such
> as PNG or
Hi again,
2009/1/7 Luka Napotnik :
> Here's a sample code that fails:
I had a look at the docs and MagickReadImageBlob() probably isn't the
right bit of API. It expects the data to be in a contaner format, such
as PNG or JPEG.
ConstituteImage() is probably better:
http://imagemagick.org/api/
Here's a sample code that fails:
#include
#include
#include
guchar *
pixels_pack(guchar *data,
int width,
int height)
{
/* Allocate an array of dimensions width*height for
* RGBA with 16 bits per channel.
2009/1/7 Luka Napotnik :
> I've converted the buffer to an RGBA array with 16-bits per channel. But
> loading the blob still fails. Any other ideas?
We can't tell you what's wrong if you don't show any code. You need to
post a tiny (but complete) test program. It'll only take you 30
minutes to wri
Hello again.
I've converted the buffer to an RGBA array with 16-bits per channel. But
loading the blob still fails. Any other ideas?
Greets,
Luka
Dne 06.01.2009 (tor) ob 12:03 + je jcup...@gmail.com zapisal(a):
> 2009/1/6 Luka Napotnik :
> > I'm trying to use GraphicsMagic (the successor of
2009/1/6 Luka Napotnik :
> Hum could you please tell me more about gdkpixbuf dithering functions. I
> was unable to fund such a function.
Just that it'll dither for you when drawing to the display. So if your
graphics card is 16 bits per pixel (eg. 6 bits of green, 6 red, 4 blue
or whatever), gdk
Hum could you please tell me more about gdkpixbuf dithering functions. I
was unable to fund such a function.
Greets,
Luka
Dne 06.01.2009 (tor) ob 12:06 + je jcup...@gmail.com zapisal(a):
> 2009/1/6 Luka Napotnik :
> > Well I need a dither filter for my image buffer. That's why I'm looking
> >
2009/1/6 Luka Napotnik :
> Well I need a dither filter for my image buffer. That's why I'm looking
> at GraphicsMagick.
Oh, OK, vips does not have any dithering operations. I guess you know
about GdkPixbuf's dithering?
John
___
gtk-app-devel-list mailin
2009/1/6 Luka Napotnik :
> I'm trying to use GraphicsMagic (the successor of ImageMagick) to
> manipulate a GdkPixbuf image buffer. The problem is that the program
> segfaults, probably due to the raw nature of the buffer which the Magick
> API doesn't handle very good.
> I'm opening the image buff
Hello.
Well I need a dither filter for my image buffer. That's why I'm looking
at GraphicsMagick.
Greets,
Luka
Dne 06.01.2009 (tor) ob 13:48 +0200 je Dov Grobgeld zapisal(a):
> The data of a GdkPixbuf is layed out as a continous allocated chunk of
> memory in one of the following format RGBRGBRG
The data of a GdkPixbuf is layed out as a continous allocated chunk of
memory in one of the following format RGBRGBRGB for 24-bit images, or
RGBARGBARGBA, for 32-bit images, where R,G,B,A stands for the red, green,
blue, and alpha components respectively. Lines may be also padded to
row_stride byte
11 matches
Mail list logo