% March 2003 %
% %
% %
-% Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
ExceptionInfo
*exception;
- Image
- *image;
-
CacheView
*view;
%
% The format of the ClearPixelIterator method is:
%
-% PixelIterator *ClearPixelIterator(PixelIterator *iterator)
+% void ClearPixelIterator(PixelIterator *iterator)
%
% A description of each parameter follows:
%
assert(iterator->signature == WandSignature);
if (iterator->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",iterator->name);
- clone_iterator=(PixelIterator *) AcquireMagickMemory(
- sizeof(*clone_iterator));
+ clone_iterator=(PixelIterator *) AcquireMagickMemory(sizeof(*clone_iterator));
if (clone_iterator == (PixelIterator *) NULL)
ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
iterator->name);
PixelIteratorId,(double) clone_iterator->id);
clone_iterator->exception=AcquireExceptionInfo();
InheritException(clone_iterator->exception,iterator->exception);
- clone_iterator->image=CloneImage(iterator->image,0,0,MagickTrue,
- iterator->exception);
clone_iterator->view=CloneCacheView(iterator->view);
clone_iterator->region=iterator->region;
clone_iterator->active=iterator->active;
assert(iterator->signature == WandSignature);
if (iterator->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",iterator->name);
- iterator->image=DestroyImage(iterator->image);
iterator->view=DestroyCacheView(iterator->view);
iterator->pixel_wands=DestroyPixelWands(iterator->pixel_wands,
iterator->region.width);
(void) FormatLocaleString(iterator->name,MaxTextExtent,"%s-%.20g",
PixelIteratorId,(double) iterator->id);
iterator->exception=exception;
- iterator->image=CloneImage(image,0,0,MagickTrue,iterator->exception);
iterator->view=view;
SetGeometry(image,&iterator->region);
iterator->region.width=image->columns;
%
% The format of the PixelClearIteratorException method is:
%
-% MagickBooleanType PixelClearIteratorException(PixelIterator *wand)
+% MagickBooleanType PixelClearIteratorException(PixelIterator *iterator)
%
% A description of each parameter follows:
%
-% o wand: the pixel wand.
+% o iterator: the pixel iterator.
%
*/
WandExport MagickBooleanType PixelClearIteratorException(
%
% The format of the NewPixelRegionIterator method is:
%
-% PixelIterator NewPixelRegionIterator(MagickWand *wand,const ssize_t x,
+% PixelIterator *NewPixelRegionIterator(MagickWand *wand,const ssize_t x,
% const ssize_t y,const size_t width,const size_t height)
%
% A description of each parameter follows:
return((PixelWand **) NULL);
for (x=0; x < (ssize_t) iterator->region.width; x++)
{
- PixelSetQuantumPixel(iterator->image,pixels,iterator->pixel_wands[x]);
- pixels+=GetPixelChannels(iterator->image);
+ PixelSetQuantumPixel(GetCacheViewImage(iterator->view),pixels,
+ iterator->pixel_wands[x]);
+ pixels+=GetPixelChannels(GetCacheViewImage(iterator->view));
}
*number_wands=iterator->region.width;
return(iterator->pixel_wands);
%
% The format of the PixelGetIteratorException method is:
%
-% char *PixelGetIteratorException(const Pixeliterator *iterator,
+% char *PixelGetIteratorException(const PixelIterator *iterator,
% ExceptionType *severity)
%
% A description of each parameter follows:
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% PixelGetIteratorExceptionType() the exception type associated with the wand.
-% If no exception has occurred, UndefinedExceptionType is returned.
+% PixelGetIteratorExceptionType() the exception type associated with the
+% iterator. If no exception has occurred, UndefinedExceptionType is returned.
%
% The format of the PixelGetIteratorExceptionType method is:
%
-% ExceptionType PixelGetIteratorExceptionType(const PixelWand *wand)
+% ExceptionType PixelGetIteratorExceptionType(
+% const PixelIterator *iterator)
%
% A description of each parameter follows:
%
-% o wand: the magick wand.
+% o iterator: the pixel iterator.
%
*/
WandExport ExceptionType PixelGetIteratorExceptionType(
- const PixelIterator *wand)
+ const PixelIterator *iterator)
{
- assert(wand != (const PixelIterator *) NULL);
- assert(wand->signature == WandSignature);
- if (wand->debug != MagickFalse)
- (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
- return(wand->exception->severity);
+ assert(iterator != (const PixelIterator *) NULL);
+ assert(iterator->signature == WandSignature);
+ if (iterator->debug != MagickFalse)
+ (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",iterator->name);
+ return(iterator->exception->severity);
}
\f
/*
return((PixelWand **) NULL);
for (x=0; x < (ssize_t) iterator->region.width; x++)
{
- PixelSetQuantumPixel(iterator->image,pixels,iterator->pixel_wands[x]);
- pixels+=GetPixelChannels(iterator->image);
+ PixelSetQuantumPixel(GetCacheViewImage(iterator->view),pixels,
+ iterator->pixel_wands[x]);
+ pixels+=GetPixelChannels(GetCacheViewImage(iterator->view));
}
*number_wands=iterator->region.width;
return(iterator->pixel_wands);
return((PixelWand **) NULL);
for (x=0; x < (ssize_t) iterator->region.width; x++)
{
- PixelSetQuantumPixel(iterator->image,pixels,iterator->pixel_wands[x]);
- pixels+=GetPixelChannels(iterator->image);
+ PixelSetQuantumPixel(GetCacheViewImage(iterator->view),pixels,
+ iterator->pixel_wands[x]);
+ pixels+=GetPixelChannels(GetCacheViewImage(iterator->view));
}
*number_wands=iterator->region.width;
return(iterator->pixel_wands);
return(MagickFalse);
for (x=0; x < (ssize_t) iterator->region.width; x++)
{
- PixelGetQuantumPixel(iterator->image,iterator->pixel_wands[x],pixels);
- pixels+=GetPixelChannels(iterator->image);
+ PixelGetQuantumPixel(GetCacheViewImage(iterator->view),
+ iterator->pixel_wands[x],pixels);
+ pixels+=GetPixelChannels(GetCacheViewImage(iterator->view));
}
if (SyncCacheViewAuthenticPixels(iterator->view,iterator->exception) == MagickFalse)
return(MagickFalse);