Lines Matching refs:palette
296 Image *image,*palette;
333 palette=NULL;
380 /* ----- Do something with palette ----- */
418 if( (palette=AcquireImage(clone_info,exception))==NULL ) goto NoPalette;
419 status=OpenBlob(clone_info,palette,ReadBinaryBlobMode,exception);
423 palette=DestroyImage(palette);
424 palette=NULL;
429 if(palette!=NULL)
431 (void) ReadBlob(palette,2,(unsigned char *) PalHeader.FileId);
433 PalHeader.Version=ReadBlobLSBShort(palette);
434 PalHeader.Size=ReadBlobLSBShort(palette);
435 PalHeader.FileType=(char) ReadBlobByte(palette);
436 PalHeader.SubType=(char) ReadBlobByte(palette);
437 PalHeader.BoardID=ReadBlobLSBShort(palette);
438 PalHeader.GraphicsMode=ReadBlobLSBShort(palette);
439 PalHeader.MaxIndex=ReadBlobLSBShort(palette);
440 PalHeader.MaxRed=ReadBlobLSBShort(palette);
441 PalHeader.MaxGreen=ReadBlobLSBShort(palette);
442 PalHeader.MaxBlue=ReadBlobLSBShort(palette);
443 (void) ReadBlob(palette,20,(unsigned char *) PalHeader.PaletteId);
454 { /*this may be wrong- I don't know why is palette such strange*/
455 j=(ssize_t) TellBlob(palette);
459 offset=SeekBlob(palette,j,SEEK_SET);
463 image->colormap[i].red=(Quantum) ReadBlobLSBShort(palette);
470 image->colormap[i].green=(Quantum) ReadBlobLSBShort(palette);
476 image->colormap[i].blue=(Quantum) ReadBlobLSBShort(palette);
489 if(palette==NULL)
561 if(palette==NULL)
602 if (palette != NULL)
603 palette=DestroyImage(palette);