Lines Matching refs:exception
54 #include "MagickCore/exception.h"
55 #include "MagickCore/exception-private.h"
89 % const OrientationType orientation,ExceptionInfo *exception)
97 % o exception: Return any errors or warnings in this structure.
101 const OrientationType orientation,ExceptionInfo *exception)
108 assert(exception != (ExceptionInfo *) NULL);
109 assert(exception->signature == MagickCoreSignature);
117 orient_image=CloneImage(image,0,0,MagickTrue,exception);
122 orient_image=FlopImage(image,exception);
127 orient_image=RotateImage(image,180.0,exception);
132 orient_image=FlipImage(image,exception);
137 orient_image=TransposeImage(image,exception);
142 orient_image=RotateImage(image,90.0,exception);
147 orient_image=TransverseImage(image,exception);
152 orient_image=RotateImage(image,270.0,exception);
179 % ExceptionInfo *exception)
187 % o exception: return any errors or warnings in this structure.
191 ExceptionInfo *exception)
221 assert(exception != (ExceptionInfo *) NULL);
222 assert(exception->signature == MagickCoreSignature);
245 extent.height,MagickTrue,exception);
253 image_view=AcquireVirtualCacheView(image,exception);
254 chop_view=AcquireAuthenticCacheView(chop_image,exception);
272 p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception);
274 exception);
301 if (SyncCacheViewAuthenticPixels(chop_view,exception) == MagickFalse)
337 image->columns,1,exception);
339 1,exception);
366 if (SyncCacheViewAuthenticPixels(chop_view,exception) == MagickFalse)
406 % Image *ConsolidateCMYKImage(const Image *image,ExceptionInfo *exception)
412 % o exception: return any errors or warnings in this structure.
416 ExceptionInfo *exception)
439 assert(exception != (ExceptionInfo *) NULL);
440 assert(exception->signature == MagickCoreSignature);
449 exception);
452 if (SetImageStorageClass(cmyk_image,DirectClass,exception) == MagickFalse)
454 (void) SetImageColorspace(cmyk_image,CMYKColorspace,exception);
457 image_view=AcquireVirtualCacheView(images,exception);
458 cmyk_view=AcquireAuthenticCacheView(cmyk_image,exception);
470 p=GetCacheViewVirtualPixels(image_view,0,y,images->columns,1,exception);
472 exception);
492 if (SyncCacheViewAuthenticPixels(cmyk_view,exception) == MagickFalse)
525 % ExceptionInfo *exception)
534 % o exception: return any errors or warnings in this structure.
538 ExceptionInfo *exception)
573 assert(exception != (ExceptionInfo *) NULL);
574 assert(exception->signature == MagickCoreSignature);
594 (void) ThrowMagickException(exception,GetMagickModule(),OptionWarning,
596 crop_image=CloneImage(image,1,1,MagickTrue,exception);
601 (void) SetImageBackgroundColor(crop_image,exception);
645 (void) ThrowMagickException(exception,GetMagickModule(),OptionWarning,
652 crop_image=CloneImage(image,page.width,page.height,MagickTrue,exception);
672 image_view=AcquireVirtualCacheView(image,exception);
673 crop_view=AcquireAuthenticCacheView(crop_image,exception);
692 1,exception);
694 exception);
725 if (SyncCacheViewAuthenticPixels(crop_view,exception) == MagickFalse)
765 % const RectangleInfo *crop_geometry, ExceptionInfo *exception)
773 % o exception: return any errors or warnings in this structure.
788 const char *crop_geometry,ExceptionInfo *exception)
806 flags=ParseGravityGeometry(image,crop_geometry,&geometry,exception);
885 next=CropImage(image,&crop,exception);
890 ClearMagickException(exception);
899 crop_image=CropImage(image,&geometry,exception);
945 next=CropImage(image,&geometry,exception);
955 return(CloneImage(image,0,0,MagickTrue,exception));
975 % ExceptionInfo *exception)
984 % o exception: return any errors or warnings in this structure.
988 const RectangleInfo *geometry,ExceptionInfo *exception)
1016 assert(exception != (ExceptionInfo *) NULL);
1017 assert(exception->signature == MagickCoreSignature);
1019 exception);
1027 image_view=AcquireVirtualCacheView(image,exception);
1028 excerpt_view=AcquireAuthenticCacheView(excerpt_image,exception);
1047 geometry->width,1,exception);
1049 exception);
1080 if (SyncCacheViewAuthenticPixels(excerpt_view,exception) == MagickFalse)
1122 % ExceptionInfo *exception)
1131 % o exception: return any errors or warnings in this structure.
1135 const RectangleInfo *geometry,ExceptionInfo *exception)
1148 assert(exception != (ExceptionInfo *) NULL);
1149 assert(exception->signature == MagickCoreSignature);
1153 return(CloneImage(image,0,0,MagickTrue,exception));
1155 exception);
1158 (void) SetImageBackgroundColor(extent_image,exception);
1160 -geometry->x,-geometry->y,exception);
1181 % Image *FlipImage(const Image *image,ExceptionInfo *exception)
1187 % o exception: return any errors or warnings in this structure.
1190 MagickExport Image *FlipImage(const Image *image,ExceptionInfo *exception)
1217 assert(exception != (ExceptionInfo *) NULL);
1218 assert(exception->signature == MagickCoreSignature);
1219 flip_image=CloneImage(image,image->columns,image->rows,MagickTrue,exception);
1228 image_view=AcquireVirtualCacheView(image,exception);
1229 flip_view=AcquireAuthenticCacheView(flip_image,exception);
1247 p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception);
1249 1),flip_image->columns,1,exception);
1280 if (SyncCacheViewAuthenticPixels(flip_view,exception) == MagickFalse)
1323 % Image *FlopImage(const Image *image,ExceptionInfo *exception)
1329 % o exception: return any errors or warnings in this structure.
1332 MagickExport Image *FlopImage(const Image *image,ExceptionInfo *exception)
1359 assert(exception != (ExceptionInfo *) NULL);
1360 assert(exception->signature == MagickCoreSignature);
1361 flop_image=CloneImage(image,image->columns,image->rows,MagickTrue,exception);
1370 image_view=AcquireVirtualCacheView(image,exception);
1371 flop_view=AcquireAuthenticCacheView(flop_image,exception);
1389 p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception);
1391 exception);
1421 if (SyncCacheViewAuthenticPixels(flop_view,exception) == MagickFalse)
1464 % const ssize_t y_offset,ExceptionInfo *exception)
1474 % o exception: return any errors or warnings in this structure.
1479 const ssize_t dx,const ssize_t dy,ExceptionInfo *exception)
1494 source_view=AcquireVirtualCacheView(source,exception);
1495 destination_view=AcquireAuthenticCacheView(destination,exception);
1519 p=GetCacheViewVirtualPixels(source_view,sx,sy+y,columns,1,exception);
1520 q=GetCacheViewAuthenticPixels(destination_view,dx,dy+y,columns,1,exception);
1552 sync=SyncCacheViewAuthenticPixels(destination_view,exception);
1562 const ssize_t y_offset,ExceptionInfo *exception)
1582 assert(exception != (ExceptionInfo *) NULL);
1583 assert(exception->signature == MagickCoreSignature);
1584 roll_image=CloneImage(image,image->columns,image->rows,MagickTrue,exception);
1602 offset.y,0,0,exception);
1606 exception);
1609 offset.y,(ssize_t) image->columns-offset.x,0,0,offset.y,exception);
1612 offset.y,0,0,offset.x,offset.y,exception);
1639 % ExceptionInfo *exception)
1652 % o exception: return any errors or warnings in this structure.
1656 const RectangleInfo *shave_info,ExceptionInfo *exception)
1676 shave_image=CropImage(image,&geometry,exception);
1704 % ExceptionInfo *exception)
1713 % o exception: return any errors or warnings in this structure.
1717 const RectangleInfo *geometry,ExceptionInfo *exception)
1749 assert(exception != (ExceptionInfo *) NULL);
1750 assert(exception->signature == MagickCoreSignature);
1753 image->rows+splice_geometry.height,MagickTrue,exception);
1756 if (SetImageStorageClass(splice_image,DirectClass,exception) == MagickFalse)
1763 (void) SetImageColorspace(splice_image,sRGBColorspace,exception);
1766 (void) SetImageAlpha(splice_image,OpaqueAlpha,exception);
1767 (void) SetImageBackgroundColor(splice_image,exception);
1828 image_view=AcquireVirtualCacheView(image,exception);
1829 splice_view=AcquireAuthenticCacheView(splice_image,exception);
1848 exception);
1850 exception);
1916 if (SyncCacheViewAuthenticPixels(splice_view,exception) == MagickFalse)
1953 splice_image->columns,1,exception);
1955 exception);
2021 if (SyncCacheViewAuthenticPixels(splice_view,exception) == MagickFalse)
2077 % const char *image_geometry,ExceptionInfo *exception)
2089 % o exception: return any errors or warnings in this structure.
2093 const char *crop_geometry,const char *image_geometry,ExceptionInfo *exception)
2115 crop_image=CropImageToTiles(*image,crop_geometry,exception);
2117 transform_image=CloneImage(*image,0,0,MagickTrue,exception);
2131 (void) ParseRegionGeometry(transform_image,image_geometry,&geometry,exception);
2136 transform_image->filter,exception);
2162 % Image *TransposeImage(const Image *image,ExceptionInfo *exception)
2168 % o exception: return any errors or warnings in this structure.
2171 MagickExport Image *TransposeImage(const Image *image,ExceptionInfo *exception)
2198 assert(exception != (ExceptionInfo *) NULL);
2199 assert(exception->signature == MagickCoreSignature);
2201 exception);
2209 image_view=AcquireVirtualCacheView(image,exception);
2210 transpose_view=AcquireAuthenticCacheView(transpose_image,exception);
2229 image->columns,1,exception);
2231 0,1,transpose_image->rows,exception);
2263 if (SyncCacheViewAuthenticPixels(transpose_view,exception) == MagickFalse)
2308 % Image *TransverseImage(const Image *image,ExceptionInfo *exception)
2314 % o exception: return any errors or warnings in this structure.
2317 MagickExport Image *TransverseImage(const Image *image,ExceptionInfo *exception)
2344 assert(exception != (ExceptionInfo *) NULL);
2345 assert(exception->signature == MagickCoreSignature);
2347 exception);
2355 image_view=AcquireVirtualCacheView(image,exception);
2356 transverse_view=AcquireAuthenticCacheView(transverse_image,exception);
2377 p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception);
2379 0,1,transverse_image->rows,exception);
2410 sync=SyncCacheViewAuthenticPixels(transverse_view,exception);
2461 % Image *TrimImage(const Image *image,ExceptionInfo *exception)
2467 % o exception: return any errors or warnings in this structure.
2470 MagickExport Image *TrimImage(const Image *image,ExceptionInfo *exception)
2479 geometry=GetImageBoundingBox(image,exception);
2485 crop_image=CloneImage(image,1,1,MagickTrue,exception);
2490 (void) SetImageBackgroundColor(crop_image,exception);
2498 return(CropImage(image,&geometry,exception));