#include "image.h"
#include <gif_lib.h>
+/* XXX: Reading still needs to support reading all those gif properties */
+
/*
=head1 NAME
#endif
-/*
- This file needs a complete rewrite
- This file needs a complete rewrite
-
- Maybe not anymore, though reading still needs to support reading
- all those gif properties.
-*/
/* Make some variables global, so we could access them faster: */
InterlacedOffset[] = { 0, 4, 2, 1 }, /* The way Interlaced image should. */
InterlacedJumps[] = { 8, 8, 4, 2 }; /* be read - offsets and jumps... */
-/* static ColorMapObject *ColorMap; */
static
Size = GifFile->SWidth * sizeof(GifPixelType);
- if ((GifRow = (GifRowType) mymalloc(Size)) == NULL)
- m_fatal(0,"Failed to allocate memory required, aborted."); /* First row. */
+ GifRow = (GifRowType) mymalloc(Size);
for (i = 0; i < GifFile->SWidth; i++) GifRow[i] = GifFile->SBackGroundColor;
*/
undef_int
-i_writegif(i_img *im, int fd, int max_colors, int pixdev, int fixedlen, i_color fixed[])
-{
+i_writegif(i_img *im, int fd, int max_colors, int pixdev, int fixedlen, i_color fixed[]) {
i_color colors[256];
i_quantize quant;
i_gif_opts opts;
x => 15,
y => 40,
size => 40,
- color => $red
+ color => $red,
aa => 1);
# Documentation in Imager.pm
here since it belongs to the font routines. Example:
$img=Imager->new();
- $img=read(file=>"test.jpg");
+ $img->read(file=>"test.jpg");
$img->string(font=>$t1font,
text=>"Model-XYZ",
x=>0,