~ubuntu-branches/ubuntu/intrepid/graphicsmagick/intrepid

« back to all changes in this revision

Viewing changes to magick/deprecate.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2006-05-06 16:28:08 UTC
  • Revision ID: james.westby@ubuntu.com-20060506162808-vt2ni3r5nytcszms
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
% Copyright (C) 2003 GraphicsMagick Group
 
3
% Copyright (C) 2002 ImageMagick Studio
 
4
%
 
5
% This program is covered by multiple licenses, which are described in
 
6
% Copyright.txt. You should have received a copy of Copyright.txt with this
 
7
% package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
 
8
%
 
9
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
10
%                                                                             %
 
11
%                                                                             %
 
12
%        DDDD   EEEEE  PPPP   RRRR   EEEEE   CCCC   AAA   TTTTT  EEEEE        %
 
13
%        D   D  E      P   P  R   R  E      C      A   A    T    E            %
 
14
%        D   D  EEE    PPPPP  RRRR   EEE    C      AAAAA    T    EEE          %
 
15
%        D   D  E      P      R R    E      C      A   A    T    E            %
 
16
%        DDDD   EEEEE  P      R  R   EEEEE   CCCC  A   A    T    EEEEE        %
 
17
%                                                                             %
 
18
%                                                                             %
 
19
%                      GraphicsMagick Deprecated Methods                      %
 
20
%                                                                             %
 
21
%                                                                             %
 
22
%                              Software Design                                %
 
23
%                                John Cristy                                  %
 
24
%                                October 2002                                 %
 
25
%                                                                             %
 
26
%                                                                             %
 
27
%                                                                             %
 
28
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
29
%
 
30
%
 
31
%
 
32
*/
 
33
 
 
34
/*
 
35
  Include declarations.
 
36
*/
 
37
#include "magick/studio.h"
 
38
#include "magick/blob.h"
 
39
#include "magick/color.h"
 
40
#include "magick/deprecate.h"
 
41
#include "magick/list.h"
 
42
#include "magick/log.h"
 
43
#include "magick/resource.h"
 
44
#include "magick/utility.h"
 
45
 
 
46
/*
 
47
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
48
%                                                                             %
 
49
%                                                                             %
 
50
%                                                                             %
 
51
%   D e l e t e I m a g e L i s t                                             %
 
52
%                                                                             %
 
53
%                                                                             %
 
54
%                                                                             %
 
55
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
56
%
 
57
%  DeleteImageList() deletes an image at the specified position in the list.
 
58
%
 
59
%  This method is deprecated as of version 5.5.2.
 
60
%
 
61
%  The format of the DeleteImageList method is:
 
62
%
 
63
%      unsigned int DeleteImageList(Image *images,const long offset)
 
64
%
 
65
%  A description of each parameter follows:
 
66
%
 
67
%    o images: The image list.
 
68
%
 
69
%    o offset: The position within the list.
 
70
%
 
71
%
 
72
*/
 
73
MagickExport unsigned int DeleteImageList(Image *images,const long offset)
 
74
{
 
75
  register long
 
76
    i;
 
77
 
 
78
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
79
    "Method has been deprecated");
 
80
  while (images->previous != (Image *) NULL)
 
81
    images=images->previous;
 
82
  for (i=0; i < offset; i++)
 
83
  {
 
84
    if (images->next == (Image *) NULL)
 
85
      return(False);
 
86
    images=images->next;
 
87
  }
 
88
  DeleteImageFromList(&images);
 
89
  return(True);
 
90
}
 
91
 
 
92
/*
 
93
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
94
%                                                                             %
 
95
%                                                                             %
 
96
%                                                                             %
 
97
%   D e s t r o y I m a g e s                                                 %
 
98
%                                                                             %
 
99
%                                                                             %
 
100
%                                                                             %
 
101
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
102
%
 
103
%  DestroyImages() destroys an image list.
 
104
%
 
105
%  This method is deprecated as of version 5.4.3.
 
106
%
 
107
%  The format of the DestroyImages method is:
 
108
%
 
109
%      void DestroyImages(Image *image)
 
110
%
 
111
%  A description of each parameter follows:
 
112
%
 
113
%    o image: The image sequence.
 
114
%
 
115
%
 
116
*/
 
117
MagickExport void DestroyImages(Image *image)
 
118
{
 
119
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
120
    "Method has been deprecated");
 
121
  DestroyImageList(image);
 
122
}
 
123
 
 
124
/*
 
125
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
126
%                                                                             %
 
127
%                                                                             %
 
128
%                                                                             %
 
129
%   G e t I m a g e L i s t                                                   %
 
130
%                                                                             %
 
131
%                                                                             %
 
132
%                                                                             %
 
133
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
134
%
 
135
%  GetImageList() returns an image at the specified position in the list.
 
136
%
 
137
%  This method is deprecated as of version 5.5.2.
 
138
%
 
139
%  The format of the GetImageList method is:
 
140
%
 
141
%      Image *GetImageList(const Image *images,const long offset,
 
142
%        ExceptionInfo *exception)
 
143
%
 
144
%  A description of each parameter follows:
 
145
%
 
146
%    o images: The image list.
 
147
%
 
148
%    o offset: The position within the list.
 
149
%
 
150
%    o exception: Return any errors or warnings in this structure.
 
151
%
 
152
%
 
153
*/
 
154
MagickExport Image *GetImageList(const Image *images,const long offset,
 
155
  ExceptionInfo *exception)
 
156
{
 
157
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
158
    "Method has been deprecated");
 
159
  return(CloneImage(GetImageFromList(images,offset),0,0,True,exception));
 
160
}
 
161
 
 
162
/*
 
163
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
164
%                                                                             %
 
165
%                                                                             %
 
166
%                                                                             %
 
167
%   G e t I m a g e L i s t I n d e x                                         %
 
168
%                                                                             %
 
169
%                                                                             %
 
170
%                                                                             %
 
171
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
172
%
 
173
%  GetImageListIndex() returns the position in the list of the specified
 
174
%  image.
 
175
%
 
176
%  This method is deprecated as of version 5.5.2.
 
177
%
 
178
%  The format of the GetImageListIndex method is:
 
179
%
 
180
%      long GetImageListIndex(const Image *images)
 
181
%
 
182
%  A description of each parameter follows:
 
183
%
 
184
%    o images: The image list.
 
185
%
 
186
%
 
187
*/
 
188
MagickExport long GetImageListIndex(const Image *images)
 
189
{
 
190
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
191
    "Method has been deprecated");
 
192
  return(GetImageIndexInList(images));
 
193
}
 
194
 
 
195
/*
 
196
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
197
%                                                                             %
 
198
%                                                                             %
 
199
%                                                                             %
 
200
%   G e t I m a g e L i s t S i z e                                           %
 
201
%                                                                             %
 
202
%                                                                             %
 
203
%                                                                             %
 
204
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
205
%
 
206
%  GetImageListSize() returns the number of images in the list.
 
207
%
 
208
%  This method is deprecated as of version 5.5.2.
 
209
%
 
210
%  The format of the GetImageListSize method is:
 
211
%
 
212
%      unsigned long GetImageListSize(const Image *images)
 
213
%
 
214
%  A description of each parameter follows:
 
215
%
 
216
%    o images: The image list.
 
217
%
 
218
%
 
219
*/
 
220
MagickExport unsigned long GetImageListSize(const Image *images)
 
221
{
 
222
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
223
    "Method has been deprecated");
 
224
  return(GetImageListLength(images));
 
225
}
 
226
 
 
227
/*
 
228
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
229
%                                                                             %
 
230
%                                                                             %
 
231
%                                                                             %
 
232
%   G e t N e x t I m a g e                                                   %
 
233
%                                                                             %
 
234
%                                                                             %
 
235
%                                                                             %
 
236
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
237
%
 
238
%  GetNextImage() returns the next image in a list.
 
239
%
 
240
%  This method is deprecated as of version 5.5.2.
 
241
%
 
242
%  The format of the GetNextImage method is:
 
243
%
 
244
%      Image *GetNextImage(const Image *images)
 
245
%
 
246
%  A description of each parameter follows:
 
247
%
 
248
%    o images: The image list.
 
249
%
 
250
%
 
251
*/
 
252
MagickExport Image *GetNextImage(const Image *images)
 
253
{
 
254
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
255
    "Method has been deprecated");
 
256
  return(GetNextImageInList(images));
 
257
}
 
258
 
 
259
/*
 
260
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
261
%                                                                             %
 
262
%                                                                             %
 
263
%                                                                             %
 
264
%   G e t N u m b e r S c e n e s                                             %
 
265
%                                                                             %
 
266
%                                                                             %
 
267
%                                                                             %
 
268
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
269
%
 
270
%  GetNumberScenes() returns the number of images in the list.
 
271
%
 
272
%  This method is deprecated as of version 5.5.2.
 
273
%
 
274
%  The format of the GetNumberScenes method is:
 
275
%
 
276
%      unsigned int GetNumberScenes(const Image *images)
 
277
%
 
278
%  A description of each parameter follows:
 
279
%
 
280
%    o images: The image list.
 
281
%
 
282
%
 
283
*/
 
284
MagickExport unsigned int GetNumberScenes(const Image *image)
 
285
{
 
286
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
287
    "Method has been deprecated");
 
288
  return(GetImageListLength(image));
 
289
}
 
290
 
 
291
/*
 
292
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
293
%                                                                             %
 
294
%                                                                             %
 
295
%                                                                             %
 
296
%   G e t P r e v i o u s I m a g e                                           %
 
297
%                                                                             %
 
298
%                                                                             %
 
299
%                                                                             %
 
300
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
301
%
 
302
%  GetPreviousImage() returns the previous image in a list.
 
303
%
 
304
%  This method is deprecated as of version 5.5.2.
 
305
%
 
306
%  The format of the GetPreviousImage method is:
 
307
%
 
308
%      Image *GetPreviousImage(const Image *images)
 
309
%
 
310
%  A description of each parameter follows:
 
311
%
 
312
%    o images: The image list.
 
313
%
 
314
%
 
315
*/
 
316
MagickExport Image *GetPreviousImage(const Image *images)
 
317
{
 
318
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
319
    "Method has been deprecated");
 
320
  return(GetPreviousImageInList(images));
 
321
}
 
322
 
 
323
/*
 
324
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
325
%                                                                             %
 
326
%                                                                             %
 
327
%                                                                             %
 
328
+   P a r s e I m a g e G e o m e t r y                                       %
 
329
%                                                                             %
 
330
%                                                                             %
 
331
%                                                                             %
 
332
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
333
%
 
334
%  ParseImageGeometry() is similar to GetGeometry() except the returned
 
335
%  geometry is modified as determined by the meta characters:  %, !, <,
 
336
%  and >.
 
337
%
 
338
%  This method is deprecated as of version 5.5.1.
 
339
%
 
340
%  The format of the ParseImageGeometry method is:
 
341
%
 
342
%      int ParseImageGeometry(const char *geometry,long *x,long *y,
 
343
%        unsigned long *width,unsigned long *height)
 
344
%
 
345
%  A description of each parameter follows:
 
346
%
 
347
%    o flags:  Method ParseImageGeometry returns a bitmask that indicates
 
348
%      which of the four values were located in the geometry string.
 
349
%
 
350
%    o image_geometry:  Specifies a character string representing the geometry
 
351
%      specification.
 
352
%
 
353
%    o x,y:  A pointer to an integer.  The x and y offset as determined by
 
354
%      the geometry specification is returned here.
 
355
%
 
356
%    o width,height:  A pointer to an unsigned integer.  The width and height
 
357
%      as determined by the geometry specification is returned here.
 
358
%
 
359
%
 
360
*/
 
361
MagickExport int ParseImageGeometry(const char *geometry,long *x,long *y,
 
362
  unsigned long *width,unsigned long *height)
 
363
{
 
364
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
365
    "Method has been deprecated");
 
366
  return(GetMagickGeometry(geometry,x,y,width,height));
 
367
}
 
368
 
 
369
/*
 
370
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
371
%                                                                             %
 
372
%                                                                             %
 
373
%                                                                             %
 
374
%   P o p I m a g e L i s t                                                   %
 
375
%                                                                             %
 
376
%                                                                             %
 
377
%                                                                             %
 
378
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
379
%
 
380
%  PopImageList() removes the last image in the list.
 
381
%
 
382
%  This method is deprecated as of version 5.5.2.
 
383
%
 
384
%  The format of the PopImageList method is:
 
385
%
 
386
%      Image *PopImageList(Image **images)
 
387
%
 
388
%  A description of each parameter follows:
 
389
%
 
390
%    o images: The image list.
 
391
%
 
392
%
 
393
*/
 
394
MagickExport Image *PopImageList(Image **images)
 
395
{
 
396
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
397
    "Method has been deprecated");
 
398
  return(RemoveLastImageFromList(images));
 
399
}
 
400
 
 
401
/*
 
402
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
403
%                                                                             %
 
404
%                                                                             %
 
405
%                                                                             %
 
406
%  P o s t s c r i p t G e o m e t r y                                        %
 
407
%                                                                             %
 
408
%                                                                             %
 
409
%                                                                             %
 
410
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
411
%
 
412
%  PostscriptGeometry() replaces any page mneumonic with the equivalent size in
 
413
%  picas.
 
414
%
 
415
%  This method is deprecated as of version 5.5.1.
 
416
%
 
417
%  The format of the PostscriptGeometry method is:
 
418
%
 
419
%      char *PostscriptGeometry(const char *page)
 
420
%
 
421
%  A description of each parameter follows.
 
422
%
 
423
%   o  page:  Specifies a pointer to an array of characters.
 
424
%      The string is either a Postscript page name (e.g. A4) or a postscript
 
425
%      page geometry (e.g. 612x792+36+36).
 
426
%
 
427
%
 
428
*/
 
429
MagickExport char *PostscriptGeometry(const char *page)
 
430
{
 
431
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
432
    "Method has been deprecated");
 
433
  return(GetPageGeometry(page));
 
434
}
 
435
 
 
436
/*
 
437
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
438
%                                                                             %
 
439
%                                                                             %
 
440
%                                                                             %
 
441
%   P u s h I m a g e L i s t                                                 %
 
442
%                                                                             %
 
443
%                                                                             %
 
444
%                                                                             %
 
445
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
446
%
 
447
%  PushImageList() adds an image to the end of the list.
 
448
%
 
449
%  This method is deprecated as of version 5.5.2.
 
450
%
 
451
%  The format of the PushImageList method is:
 
452
%
 
453
%      unsigned int PushImageList(Image *images,const Image *image,
 
454
%        ExceptionInfo *exception)
 
455
%
 
456
%  A description of each parameter follows:
 
457
%
 
458
%    o images: The image list.
 
459
%
 
460
%    o image: The image.
 
461
%
 
462
%    o exception: Return any errors or warnings in this structure.
 
463
%
 
464
%
 
465
*/
 
466
MagickExport unsigned int PushImageList(Image **images,const Image *image,
 
467
  ExceptionInfo *exception)
 
468
{
 
469
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
470
    "Method has been deprecated");
 
471
  AppendImageToList(images,CloneImageList(image,exception));
 
472
  return(True);
 
473
}
 
474
 
 
475
/*
 
476
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
477
%                                                                             %
 
478
%                                                                             %
 
479
%                                                                             %
 
480
+   S e t C a c h e T h e s h o l d                                           %
 
481
%                                                                             %
 
482
%                                                                             %
 
483
%                                                                             %
 
484
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
485
%
 
486
%  Method SetCacheThreshold() sets the amount of free memory allocated for the
 
487
%  pixel cache.  Once this threshold is exceeded, all subsequent pixels cache
 
488
%  operations are to/from disk.
 
489
%
 
490
%  This method is deprecated as of version 5.5.1.
 
491
%
 
492
%  The format of the SetCacheThreshold() method is:
 
493
%
 
494
%      void SetCacheThreshold(const size_t threshold)
 
495
%
 
496
%  A description of each parameter follows:
 
497
%
 
498
%    o threshold: The number of megabytes of memory available to the pixel
 
499
%      cache.
 
500
%
 
501
%
 
502
*/
 
503
MagickExport void SetCacheThreshold(const unsigned long size)
 
504
{
 
505
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
506
    "Method has been deprecated");
 
507
  SetMagickResourceLimit(MemoryResource,size);
 
508
  SetMagickResourceLimit(MapResource,2*size);
 
509
}
 
510
 
 
511
/*
 
512
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
513
%                                                                             %
 
514
%                                                                             %
 
515
%                                                                             %
 
516
%   S e t I m a g e L i s t                                                   %
 
517
%                                                                             %
 
518
%                                                                             %
 
519
%                                                                             %
 
520
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
521
%
 
522
%  SetImageList() inserts an image into the list at the specified position.
 
523
%
 
524
%  This method is deprecated as of version 5.5.2.
 
525
%
 
526
%  The format of the SetImageList method is:
 
527
%
 
528
%      unsigned int SetImageList(Image *images,const Image *image,
 
529
%        const long offset,ExceptionInfo *exception)
 
530
%
 
531
%  A description of each parameter follows:
 
532
%
 
533
%    o images: The image list.
 
534
%
 
535
%    o image: The image.
 
536
%
 
537
%    o offset: The position within the list.
 
538
%
 
539
%    o exception: Return any errors or warnings in this structure.
 
540
%
 
541
%
 
542
*/
 
543
MagickExport unsigned int SetImageList(Image **images,const Image *image,
 
544
  const long offset,ExceptionInfo *exception)
 
545
{
 
546
  Image
 
547
    *clone;
 
548
 
 
549
  register long
 
550
    i;
 
551
 
 
552
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
553
    "Method has been deprecated");
 
554
  clone=CloneImageList(image,exception);
 
555
  while ((*images)->previous != (Image *) NULL)
 
556
    (*images)=(*images)->previous;
 
557
  for (i=0; i < offset; i++)
 
558
  {
 
559
    if ((*images)->next == (Image *) NULL)
 
560
      return(False);
 
561
    (*images)=(*images)->next;
 
562
  }
 
563
  InsertImageInList(images,clone);
 
564
  return(True);
 
565
}
 
566
 
 
567
/*
 
568
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
569
%                                                                             %
 
570
%                                                                             %
 
571
%                                                                             %
 
572
%   S h i f t I m a g e L i s t                                               %
 
573
%                                                                             %
 
574
%                                                                             %
 
575
%                                                                             %
 
576
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
577
%
 
578
%  ShiftImageList() removes an image from the beginning of the list.
 
579
%
 
580
%  This method is deprecated as of version 5.5.2.
 
581
%
 
582
%  The format of the ShiftImageList method is:
 
583
%
 
584
%      Image *ShiftImageList(Image **images)
 
585
%
 
586
%  A description of each parameter follows:
 
587
%
 
588
%    o images: The image list.
 
589
%
 
590
%
 
591
*/
 
592
MagickExport Image *ShiftImageList(Image **images)
 
593
{
 
594
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
595
    "Method has been deprecated");
 
596
  return(RemoveFirstImageFromList(images));
 
597
}
 
598
 
 
599
/*
 
600
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
601
%                                                                             %
 
602
%                                                                             %
 
603
%                                                                             %
 
604
+  S i z e B l o b                                                            %
 
605
%                                                                             %
 
606
%                                                                             %
 
607
%                                                                             %
 
608
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
609
%
 
610
%  SizeBlob() returns the current length of the image file or blob.
 
611
%
 
612
%  This method is deprecated as of version 5.4.3.
 
613
%
 
614
%  The format of the SizeBlob method is:
 
615
%
 
616
%      magick_off_t SizeBlob(const Image *image)
 
617
%
 
618
%  A description of each parameter follows:
 
619
%
 
620
%    o size:  Method SizeBlob returns the current length of the image file
 
621
%      or blob.
 
622
%
 
623
%    o image: The image.
 
624
%
 
625
%
 
626
*/
 
627
MagickExport magick_off_t SizeBlob(const Image *image)
 
628
{
 
629
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
630
    "Method has been deprecated");
 
631
  return(GetBlobSize(image));
 
632
}
 
633
 
 
634
/*
 
635
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
636
%                                                                             %
 
637
%                                                                             %
 
638
%                                                                             %
 
639
%   S p l i c e I m a g e L i s t                                             %
 
640
%                                                                             %
 
641
%                                                                             %
 
642
%                                                                             %
 
643
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
644
%
 
645
%  SpliceImageList() removes the images designated by offset and length from
 
646
%  the list and replaces them with the specified list.
 
647
%
 
648
%  This method is deprecated as of version 5.5.2.
 
649
%
 
650
%  The format of the SpliceImageList method is:
 
651
%
 
652
%      Image *SpliceImageList(Image *images,const long offset,
 
653
%        const unsigned long length,const Image *splices,
 
654
%        ExceptionInfo *exception)
 
655
%
 
656
%  A description of each parameter follows:
 
657
%
 
658
%    o images: The image list.
 
659
%
 
660
%    o offset: The position within the list.
 
661
%
 
662
%    o length: The length of the image list to remove.
 
663
%
 
664
%    o splice: Replace the removed image list with this list.
 
665
%
 
666
%    o exception: Return any errors or warnings in this structure.
 
667
%
 
668
%
 
669
*/
 
670
MagickExport Image *SpliceImageList(Image *images,const long offset,
 
671
  const unsigned long length,const Image *splices,ExceptionInfo *exception)
 
672
{
 
673
  Image
 
674
    *clone;
 
675
 
 
676
  register long
 
677
    i;
 
678
 
 
679
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
680
    "Method has been deprecated");
 
681
  clone=CloneImageList(splices,exception);
 
682
  while (images->previous != (Image *) NULL)
 
683
    images=images->previous;
 
684
  for (i=0; i < offset; i++)
 
685
  {
 
686
    if (images->next == (Image *) NULL)
 
687
      return(False);
 
688
    images=images->next;
 
689
  }
 
690
  (void) SpliceImageIntoList(&images,length,clone);
 
691
  return(images);
 
692
}
 
693
 
 
694
/*
 
695
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
696
%                                                                             %
 
697
%                                                                             %
 
698
%                                                                             %
 
699
%   U n s h i f t I m a g e L i s t                                           %
 
700
%                                                                             %
 
701
%                                                                             %
 
702
%                                                                             %
 
703
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
704
%
 
705
%  UnshiftImageList() adds the image to the beginning of the list.
 
706
%
 
707
%  This method is deprecated as of version 5.5.2.
 
708
%
 
709
%  The format of the UnshiftImageList method is:
 
710
%
 
711
%      unsigned int UnshiftImageList(Image *images,const Image *image,
 
712
%        ExceptionInfo *exception)
 
713
%
 
714
%  A description of each parameter follows:
 
715
%
 
716
%    o images: The image list.
 
717
%
 
718
%    o image: The image.
 
719
%
 
720
%    o exception: Return any errors or warnings in this structure.
 
721
%
 
722
%
 
723
*/
 
724
MagickExport unsigned int UnshiftImageList(Image **images,const Image *image,
 
725
  ExceptionInfo *exception)
 
726
{
 
727
  (void) LogMagickEvent(DeprecateEvent,GetMagickModule(),
 
728
    "Method has been deprecated");
 
729
  PrependImageToList(images,CloneImageList(image,exception));
 
730
  return(True);
 
731
}
 
732