XDrawPanRectangle(Display *,XWindows *),
XImageCache(Display *,XResourceInfo *,XWindows *,const CommandType,Image **,
ExceptionInfo *),
- XMagnifyImage(Display *,XWindows *,XEvent *),
+ XMagnifyImage(Display *,XWindows *,XEvent *,ExceptionInfo *),
XMakePanImage(Display *,XResourceInfo *,XWindows *,Image *,ExceptionInfo *),
- XPanImage(Display *,XWindows *,XEvent *),
+ XPanImage(Display *,XWindows *,XEvent *,ExceptionInfo *),
XMagnifyWindowCommand(Display *,XWindows *,const MagickStatusType,
- const KeySym),
+ const KeySym,ExceptionInfo *),
XSetCropGeometry(Display *,XWindows *,RectangleInfo *,Image *),
- XScreenEvent(Display *,XWindows *,XEvent *),
+ XScreenEvent(Display *,XWindows *,XEvent *,ExceptionInfo *),
XTranslateImage(Display *,XWindows *,Image *,const KeySym);
\f
/*
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
/*
Update image configuration.
*/
- XConfigureImageColormap(display,resource_info,windows,image);
+ XConfigureImageColormap(display,resource_info,windows,image,exception);
(void) XConfigureImage(display,resource_info,windows,image,exception);
return(MagickTrue);
}
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (distance > 9)
XHighlightLine(display,windows->image.id,
windows->image.highlight_context,&segment_info);
/*
Update image configuration.
*/
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
return(MagickTrue);
}
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
*/
x=event.xbutton.x;
y=event.xbutton.y;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
XInfoWidget(display,windows,text);
(void) XCheckDefineCursor(display,windows->image.id,cursor);
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
XHighlightRectangle(display,windows->image.id,
windows->image.highlight_context,&highlight_info);
if (event.xany.window == windows->command.id)
/*
Update image configuration.
*/
- XConfigureImageColormap(display,resource_info,windows,image);
+ XConfigureImageColormap(display,resource_info,windows,image,exception);
(void) XConfigureImage(display,resource_info,windows,image,exception);
return(MagickTrue);
}
Update Magnify window configuration.
*/
if (windows->magnify.mapped != MagickFalse)
- XMakeMagnifyImage(display,windows);
+ XMakeMagnifyImage(display,windows,exception);
windows->pan.crop_geometry=windows->image.crop_geometry;
XBestIconSize(display,&windows->pan,image);
while (((windows->pan.width << 1) < MaxIconSize) &&
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if ((highlight_info.width > 3) && (highlight_info.height > 3))
XHighlightRectangle(display,windows->image.id,
windows->image.highlight_context,&highlight_info);
}
XHighlightRectangle(display,windows->image.id,
windows->image.highlight_context,&highlight_info);
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
/*
Update image configuration.
*/
- XConfigureImageColormap(display,resource_info,windows,image);
+ XConfigureImageColormap(display,resource_info,windows,image,exception);
(void) XConfigureImage(display,resource_info,windows,image,exception);
return(MagickTrue);
}
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
switch (element)
{
case PointElement:
*/
XSetCursorState(display,windows,MagickTrue);
XCheckRefreshWindows(display,windows);
- status=XDrawImage(display,windows->pixel_info,&draw_info,*image);
+ status=XDrawImage(display,windows->pixel_info,&draw_info,*image,exception);
XSetCursorState(display,windows,MagickFalse);
/*
Update image colormap and return to image drawing.
*/
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
}
XSetCursorState(display,windows,MagickFalse);
cache_image=DestroyImage(cache_image);
if (windows->image.orphan != MagickFalse)
return;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
return;
}
redo_image=NewImageList();
if (windows->image.orphan != MagickFalse)
return;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
return;
}
*/
XSetCursorState(display,windows,MagickTrue);
XCheckRefreshWindows(display,windows);
- XDisplayImageInfo(display,resource_info,windows,undo_image,*image);
+ XDisplayImageInfo(display,resource_info,windows,undo_image,*image,exception);
XSetCursorState(display,windows,MagickFalse);
}
\f
windows->image.crop_geometry);
windows->image.x=0;
windows->image.y=0;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
windows->image.x=0;
windows->image.y=0;
}
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
break;
windows->image.window_changes.width=(int) (*image)->columns;
windows->image.window_changes.height=(int) (*image)->rows;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
break;
windows->image.window_changes.width=(int) (*image)->columns;
windows->image.window_changes.height=(int) (*image)->rows;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
XSetCursorState(display,windows,MagickFalse);
if (windows->image.orphan != MagickFalse)
break;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
break;
windows->image.window_changes.width=(int) (*image)->columns;
windows->image.window_changes.height=(int) (*image)->rows;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
break;
windows->image.window_changes.width=(int) (*image)->columns;
windows->image.window_changes.height=(int) (*image)->rows;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
break;
}
%
% The format of the XMagnifyImage method is:
%
-% void XMagnifyImage(Display *display,XWindows *windows,XEvent *event)
+% void XMagnifyImage(Display *display,XWindows *windows,XEvent *event,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o event: Specifies a pointer to a XEvent structure. If it is NULL,
% the entire image is refreshed.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
-static void XMagnifyImage(Display *display,XWindows *windows,XEvent *event)
+static void XMagnifyImage(Display *display,XWindows *windows,XEvent *event,
+ ExceptionInfo *exception)
{
char
text[MaxTextExtent];
/*
Wait for next event.
*/
- XScreenEvent(display,windows,event);
+ XScreenEvent(display,windows,event,exception);
switch (event->type)
{
case ButtonPress:
% The format of the XMagnifyWindowCommand method is:
%
% void XMagnifyWindowCommand(Display *display,XWindows *windows,
-% const MagickStatusType state,const KeySym key_symbol)
+% const MagickStatusType state,const KeySym key_symbol,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o key_symbol: Specifies a KeySym which indicates which side of the image
% to trim.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
static void XMagnifyWindowCommand(Display *display,XWindows *windows,
- const MagickStatusType state,const KeySym key_symbol)
+ const MagickStatusType state,const KeySym key_symbol,ExceptionInfo *exception)
{
unsigned int
quantum;
default:
break;
}
- XMakeMagnifyImage(display,windows);
+ XMakeMagnifyImage(display,windows,exception);
}
\f
/*
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
*/
x=event.xbutton.x;
y=event.xbutton.y;
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
(void) XConfigureImage(display,resource_info,windows,*image,exception);
XInfoWidget(display,windows,text);
(void) XCheckDefineCursor(display,windows->image.id,cursor);
%
% The format of the XPanImage method is:
%
-% void XPanImage(Display *display,XWindows *windows,XEvent *event)
+% void XPanImage(Display *display,XWindows *windows,XEvent *event,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o event: Specifies a pointer to a XEvent structure. If it is NULL,
% the entire image is refreshed.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
-static void XPanImage(Display *display,XWindows *windows,XEvent *event)
+static void XPanImage(Display *display,XWindows *windows,XEvent *event,
+ ExceptionInfo *exception)
{
char
text[MaxTextExtent];
Wait for next event.
*/
if ((state & ExitState) == 0)
- XScreenEvent(display,windows,event);
+ XScreenEvent(display,windows,event,exception);
} while ((state & ExitState) == 0);
/*
Restore cursor.
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
XHighlightRectangle(display,windows->image.id,
windows->image.highlight_context,&highlight_info);
if (event.xany.window == windows->command.id)
/*
Update image colormap.
*/
- XConfigureImageColormap(display,resource_info,windows,image);
+ XConfigureImageColormap(display,resource_info,windows,image,exception);
(void) XConfigureImage(display,resource_info,windows,image,exception);
return(MagickTrue);
}
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if ((highlight_info.width > 3) && (highlight_info.height > 3))
XHighlightRectangle(display,windows->image.id,
windows->image.highlight_context,&highlight_info);
}
if (command_type != InfoCommand)
{
- XConfigureImageColormap(display,resource_info,windows,*image);
- (void) XConfigureImage(display,resource_info,windows,*image,exception);
+ XConfigureImageColormap(display,resource_info,windows,*image,
+ exception);
+ (void) XConfigureImage(display,resource_info,windows,*image,
+ exception);
}
XCheckRefreshWindows(display,windows);
XInfoWidget(display,windows,text);
}
XHighlightRectangle(display,windows->image.id,
windows->image.highlight_context,&highlight_info);
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (event.xany.window == windows->command.id)
{
/*
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
XHighlightLine(display,windows->image.id,
windows->image.highlight_context,&rotate_info);
if (event.xany.window == windows->command.id)
/*
Wait for next event.
*/
- XScreenEvent(display,windows,&event);
+ XScreenEvent(display,windows,&event,exception);
if (distance > 9)
XHighlightLine(display,windows->image.id,
windows->image.highlight_context,&rotate_info);
windows->image.window_changes.width=(int) width;
windows->image.window_changes.height=(int) height;
}
- XConfigureImageColormap(display,resource_info,windows,*image);
+ XConfigureImageColormap(display,resource_info,windows,*image,exception);
}
else
if (((rotations % 4) == 1) || ((rotations % 4) == 3))
%
% The format of the XScreenEvent function is:
%
-% void XScreenEvent(Display *display,XWindows *windows,XEvent *event)
+% void XScreenEvent(Display *display,XWindows *windows,XEvent *event,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
% o event: Specifies a pointer to a X11 XEvent structure.
%
+% o exception: return any errors or warnings in this structure.
%
*/
}
#endif
-static void XScreenEvent(Display *display,XWindows *windows,XEvent *event)
+static void XScreenEvent(Display *display,XWindows *windows,XEvent *event,
+ ExceptionInfo *exception)
{
register int
x,
}
if (event->xbutton.window == windows->pan.id)
{
- XPanImage(display,windows,event);
+ XPanImage(display,windows,event,exception);
break;
}
if (event->xbutton.window == windows->image.id)
windows->magnify.y=windows->image.y+y;
if (windows->magnify.mapped == MagickFalse)
(void) XMapRaised(display,windows->magnify.id);
- XMakeMagnifyImage(display,windows);
+ XMakeMagnifyImage(display,windows,exception);
if (event->type == ButtonRelease)
(void) XWithdrawWindow(display,windows->info.id,
windows->info.screen);
&window_changes);
break;
}
- XMakeMagnifyImage(display,windows);
+ XMakeMagnifyImage(display,windows,exception);
break;
}
break;
if (event->xexpose.window == windows->magnify.id)
if (event->xexpose.count == 0)
{
- XMakeMagnifyImage(display,windows);
+ XMakeMagnifyImage(display,windows,exception);
break;
}
break;
*/
(void) XLookupString((XKeyEvent *) &event->xkey,command,(int)
sizeof(command),&key_symbol,(XComposeStatus *) NULL);
- XMagnifyWindowCommand(display,windows,event->xkey.state,key_symbol);
+ XMagnifyWindowCommand(display,windows,event->xkey.state,key_symbol,
+ exception);
break;
}
case MapNotify:
if (y >= (int) windows->image.height)
y=(int) (windows->image.height-1);
windows->magnify.y=windows->image.y+y;
- XMakeMagnifyImage(display,windows);
+ XMakeMagnifyImage(display,windows,exception);
}
break;
}
}
windows->image.window_changes.width=(int) image->columns;
windows->image.window_changes.height=(int) image->rows;
- XConfigureImageColormap(display,resource_info,windows,image);
+ XConfigureImageColormap(display,resource_info,windows,image,exception);
(void) XConfigureImage(display,resource_info,windows,image,exception);
break;
}
Initialize Standard Colormap.
*/
resources.colormap=SharedColormap;
- XMakeStandardColormap(display,visual_info,&resources,image,map_info,&pixel);
+ XMakeStandardColormap(display,visual_info,&resources,image,map_info,&pixel,
+ exception);
/*
Graphic context superclass.
*/
display_image->magick);
}
XMakeStandardColormap(display,visual_info,resource_info,display_image,
- map_info,pixel);
+ map_info,pixel,exception);
display_image->taint=MagickFalse;
/*
Initialize graphic context.
*/
(void) XMagickCommand(display,resource_info,windows,ZoomCommand,
&display_image,exception);
- XMagnifyImage(display,windows,&event);
+ XMagnifyImage(display,windows,&event,exception);
break;
}
case Button3:
*/
factor=XMenuWidget(display,windows,"Magnify",MagnifyMenu,command);
if (factor >= 0)
- XMagnifyWindowCommand(display,windows,0,MagnifyCommands[factor]);
+ XMagnifyWindowCommand(display,windows,0,MagnifyCommands[factor],
+ exception);
break;
}
if (event.xbutton.window == windows->pan.id)
}
default:
{
- XPanImage(display,windows,&event);
+ XPanImage(display,windows,&event,exception);
break;
}
}
status=XMakeImage(display,resource_info,&windows->magnify,
display_image,windows->magnify.width,windows->magnify.height,
exception);
- XMakeMagnifyImage(display,windows);
+ XMakeMagnifyImage(display,windows,exception);
}
break;
}
if ((event.xexpose.window == windows->magnify.id) &&
(windows->magnify.mapped != MagickFalse))
{
- XMakeMagnifyImage(display,windows);
+ XMakeMagnifyImage(display,windows,exception);
break;
}
if (event.xexpose.window == windows->pan.id)
&display_image,exception);
}
if (event.xkey.window == windows->magnify.id)
- XMagnifyWindowCommand(display,windows,event.xkey.state,key_symbol);
+ XMagnifyWindowCommand(display,windows,event.xkey.state,key_symbol,
+ exception);
if (event.xkey.window == windows->pan.id)
{
if ((key_symbol == XK_q) || (key_symbol == XK_Escape))
}
if (event.xmap.window == windows->magnify.id)
{
- XMakeMagnifyImage(display,windows);
+ XMakeMagnifyImage(display,windows,exception);
windows->magnify.mapped=MagickTrue;
(void) XWithdrawWindow(display,windows->info.id,
windows->info.screen);
*/
taint=display_image->taint;
XMakeStandardColormap(display,icon_visual,icon_resources,
- display_image,icon_map,icon_pixel);
+ display_image,icon_map,icon_pixel,exception);
(void) XMakeImage(display,icon_resources,&windows->icon,
display_image,windows->icon.width,windows->icon.height,
exception);
{
if (map_info->colormap == icon_map->colormap)
XConfigureImageColormap(display,resource_info,windows,
- display_image);
+ display_image,exception);
(void) XFreeStandardColormap(display,icon_visual,icon_map,
icon_pixel);
windows->icon.mapped=MagickFalse;
/*
Initialize annotated image.
*/
- annotate_image=AcquireImage((ImageInfo *) NULL,&image->exception);
+ annotate_image=AcquireImage((ImageInfo *) NULL,exception);
if (annotate_image == (Image *) NULL)
return(MagickFalse);
annotate_image->columns=annotate_info->width;
y=0;
(void) XParseGeometry(annotate_info->geometry,&x,&y,&width,&height);
(void) GetOneVirtualPixel(image,(ssize_t) x,(ssize_t) y,virtual_pixel,
- &image->exception);
+ exception);
annotate_image->background_color.red=virtual_pixel[RedPixelChannel];
annotate_image->background_color.green=virtual_pixel[GreenPixelChannel];
annotate_image->background_color.blue=virtual_pixel[BluePixelChannel];
annotate_image->background_color.alpha=virtual_pixel[AlphaPixelChannel];
if (annotate_info->stencil == ForegroundStencil)
annotate_image->matte=MagickTrue;
- exception=(&image->exception);
annotate_view=AcquireCacheView(annotate_image);
for (y=0; y < (int) annotate_image->rows; y++)
{
/*
Rotate image.
*/
- rotate_image=
- RotateImage(annotate_image,annotate_info->degrees,&image->exception);
+ rotate_image=RotateImage(annotate_image,annotate_info->degrees,exception);
if (rotate_image == (Image *) NULL)
return(MagickFalse);
annotate_image=DestroyImage(annotate_image);
% The format of the XConfigureImageColormap method is:
%
% void XConfigureImageColormap(Display *display,
-% XResourceInfo *resource_info,XWindows *windows,Image *image)
+% XResourceInfo *resource_info,XWindows *windows,Image *image,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
% o image: the image.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
MagickPrivate void XConfigureImageColormap(Display *display,
- XResourceInfo *resource_info,XWindows *windows,Image *image)
+ XResourceInfo *resource_info,XWindows *windows,Image *image,
+ ExceptionInfo *exception)
{
Colormap
colormap;
XSetCursorState(display,windows,MagickTrue);
XCheckRefreshWindows(display,windows);
XMakeStandardColormap(display,windows->visual_info,resource_info,image,
- windows->map_info,windows->pixel_info);
+ windows->map_info,windows->pixel_info,exception);
colormap=windows->map_info->colormap;
(void) XSetWindowColormap(display,windows->image.id,colormap);
(void) XSetWindowColormap(display,windows->command.id,colormap);
%
% void XDisplayImageInfo(Display *display,
% const XResourceInfo *resource_info,XWindows *windows,Image *undo_image,
-% Image *image)
+% Image *image,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
% o image: the image.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
MagickPrivate void XDisplayImageInfo(Display *display,
const XResourceInfo *resource_info,XWindows *windows,Image *undo_image,
- Image *image)
+ Image *image,ExceptionInfo *exception)
{
char
filename[MaxTextExtent],
/*
Write info about the image to a file.
*/
- (void) IdentifyImage(image,file,MagickTrue,&image->exception);
+ (void) IdentifyImage(image,file,MagickTrue,exception);
(void) fclose(file);
- text=FileToString(filename,~0,&image->exception);
+ text=FileToString(filename,~0,exception);
(void) RelinquishUniqueFileResource(filename);
if (text == (char *) NULL)
{
%
% The format of the XDitherImage method is:
%
-% void XDitherImage(Image *image,XImage *ximage)
+% void XDitherImage(Image *image,XImage *ximage,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o ximage: Specifies a pointer to a XImage structure; returned from
% XCreateImage.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
-static void XDitherImage(Image *image,XImage *ximage)
+static void XDitherImage(Image *image,XImage *ximage,ExceptionInfo *exception)
{
static const short int
dither_red[2][16]=
for (y=0; y < (int) image->rows; y++)
{
p=GetCacheViewVirtualPixels(image_view,0,(ssize_t) y,image->columns,1,
- &image->exception);
+ exception);
if (p == (const Quantum *) NULL)
break;
for (x=0; x < (int) image->columns; x++)
%
% The format of the XDrawImage method is:
%
-% MagickBooleanType XDrawImage(display,pixel,draw_info,image)
+% MagickBooleanType XDrawImage(Display *display,const XPixelInfo *pixel,
+% XDrawInfo *draw_info,Image *image,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
% o image: the image.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
MagickPrivate MagickBooleanType XDrawImage(Display *display,
- const XPixelInfo *pixel,XDrawInfo *draw_info,Image *image)
+ const XPixelInfo *pixel,XDrawInfo *draw_info,Image *image,
+ ExceptionInfo *exception)
{
CacheView
*draw_view;
- ExceptionInfo
- *exception;
-
GC
draw_context;
/*
Initialize draw image.
*/
- draw_image=AcquireImage((ImageInfo *) NULL,&image->exception);
+ draw_image=AcquireImage((ImageInfo *) NULL,exception);
if (draw_image == (Image *) NULL)
return(MagickFalse);
draw_image->columns=draw_info->width;
y=0;
(void) XParseGeometry(draw_info->geometry,&x,&y,&width,&height);
(void) GetOneVirtualPixel(image,(ssize_t) x,(ssize_t) y,virtual_pixel,
- &image->exception);
+ exception);
draw_image->background_color.red=virtual_pixel[RedPixelChannel];
draw_image->background_color.green=virtual_pixel[GreenPixelChannel];
draw_image->background_color.blue=virtual_pixel[BluePixelChannel];
draw_image->background_color.alpha=virtual_pixel[AlphaPixelChannel];
- if (SetImageStorageClass(draw_image,DirectClass,&image->exception) == MagickFalse)
+ if (SetImageStorageClass(draw_image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
draw_image->matte=MagickTrue;
- exception=(&image->exception);
draw_view=AcquireCacheView(draw_image);
for (y=0; y < (int) draw_image->rows; y++)
{
/*
Rotate image.
*/
- rotate_image=RotateImage(draw_image,draw_info->degrees,&image->exception);
+ rotate_image=RotateImage(draw_image,draw_info->degrees,exception);
if (rotate_image == (Image *) NULL)
return(MagickFalse);
draw_image=DestroyImage(draw_image);
% The format of the XGetWindowColor method is:
%
% MagickBooleanType XGetWindowColor(Display *display,XWindows *windows,
-% char *name)
+% char *name,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o name: the name of the color if found in the X Color Database is
% returned in this character string.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
MagickPrivate MagickBooleanType XGetWindowColor(Display *display,
- XWindows *windows,char *name)
+ XWindows *windows,char *name,ExceptionInfo *exception)
{
int
x,
pixel.blue=ScaleShortToQuantum(color.blue);
pixel.alpha=OpaqueAlpha;
(void) QueryColorname(windows->image.image,&pixel,X11Compliance,name,
- &windows->image.image->exception);
+ exception);
return(MagickTrue);
}
\f
% The format of the XGetWindowImage method is:
%
% Image *XGetWindowImage(Display *display,const Window window,
-% const unsigned int borders,const unsigned int level)
+% const unsigned int borders,const unsigned int level,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% one call. A value of one causes the function to descend the window
% hierarchy and overlay the target image with each subwindow image.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
static Image *XGetWindowImage(Display *display,const Window window,
- const unsigned int borders,const unsigned int level)
+ const unsigned int borders,const unsigned int level,ExceptionInfo *exception)
{
typedef struct _ColormapInfo
{
if ((status == True) && (number_children != 0))
{
for (i=0; i < (int) number_children; i++)
- (void) XGetWindowImage(display,children[i],MagickFalse,level+1);
+ (void) XGetWindowImage(display,children[i],MagickFalse,level+1,
+ exception);
(void) XFree((void *) children);
}
}
ColormapInfo
*next;
- ExceptionInfo
- *exception;
-
Image
*composite_image,
*image;
/*
Allocate image structure.
*/
- composite_image=AcquireImage((ImageInfo *) NULL,&image->exception);
+ composite_image=AcquireImage((ImageInfo *) NULL,exception);
if (composite_image == (Image *) NULL)
{
XDestroyImage(ximage);
composite_image->storage_class=PseudoClass;
composite_image->columns=(size_t) ximage->width;
composite_image->rows=(size_t) ximage->height;
- exception=(&composite_image->exception);
composite_view=AcquireCacheView(composite_image);
switch (composite_image->storage_class)
{
%
% The format of the XImportImage method is:
%
-% Image *XImportImage(const ImageInfo *image_info,XImportInfo *ximage_info)
+% Image *XImportImage(const ImageInfo *image_info,XImportInfo *ximage_info,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
% o ximage_info: Specifies a pointer to an XImportInfo structure.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
MagickExport Image *XImportImage(const ImageInfo *image_info,
- XImportInfo *ximage_info)
+ XImportInfo *ximage_info,ExceptionInfo *exception)
{
Colormap
*colormaps;
*/
(void) XGrabServer(display);
image=XGetWindowImage(display,target,ximage_info->borders,
- ximage_info->descend ? 1U : 0U);
+ ximage_info->descend ? 1U : 0U,exception);
(void) XUngrabServer(display);
if (image == (Image *) NULL)
ThrowXWindowFatalException(XServerError,"UnableToReadXWindowImage",
/*
Crop image as defined by the cropping rectangle.
*/
- clone_image=CloneImage(image,0,0,MagickTrue,&image->exception);
+ clone_image=CloneImage(image,0,0,MagickTrue,exception);
if (clone_image != (Image *) NULL)
{
- crop_image=CropImage(clone_image,&crop_info,&image->exception);
+ crop_image=CropImage(clone_image,&crop_info,exception);
if (crop_image != (Image *) NULL)
{
image=DestroyImage(image);
window->image->page.x=0;
window->image->page.y=0;
(void) ParsePageGeometry(window->image,window->crop_geometry,
- &crop_info,&image->exception);
- crop_image=CropImage(window->image,&crop_info,&image->exception);
+ &crop_info,exception);
+ crop_image=CropImage(window->image,&crop_info,exception);
if (crop_image != (Image *) NULL)
{
if (window->image != image)
*/
resize_image=NewImageList();
if (window->pixel_info->colors != 0)
- resize_image=SampleImage(window->image,width,height,
- &image->exception);
+ resize_image=SampleImage(window->image,width,height,exception);
else
- resize_image=ThumbnailImage(window->image,width,height,
- &image->exception);
+ resize_image=ThumbnailImage(window->image,width,height,exception);
if (resize_image != (Image *) NULL)
{
if (window->image != image)
(void) FormatLocaleString(size,MaxTextExtent,"%.20gx%.20g",(double)
image->columns,(double) image->rows);
image_info->size=ConstantString(size);
- pattern=ReadImage(image_info,&image->exception);
+ pattern=ReadImage(image_info,exception);
image_info=DestroyImageInfo(image_info);
if (pattern != (Image *) NULL)
{
- canvas=CloneImage(image,0,0,MagickTrue,&image->exception);
+ canvas=CloneImage(image,0,0,MagickTrue,exception);
if (canvas != (Image *) NULL)
(void) CompositeImage(canvas,DstOverCompositeOp,pattern,0,0,
exception);
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,canvas->columns,1,
- &canvas->exception);
+ exception);
if (p == (const Quantum *) NULL)
break;
bit=0;
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
nibble=0;
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
nibble=0;
if (resource_info->color_recovery &&
resource_info->quantize_info->dither)
{
- XDitherImage(canvas,ximage);
+ XDitherImage(canvas,ximage,exception);
break;
}
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
for (x=0; x < (int) canvas->columns; x++)
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
for (x=0; x < (int) canvas->columns; x++)
{
nibble=0;
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
for (x=0; x < (int) canvas->columns; x++)
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
nibble=0;
if (resource_info->color_recovery &&
resource_info->quantize_info->dither)
{
- XDitherImage(canvas,ximage);
+ XDitherImage(canvas,ximage,exception);
break;
}
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
for (x=0; x < (int) canvas->columns; x++)
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
if ((red_gamma != 1.0) || (green_gamma != 1.0) ||
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
if ((red_gamma != 1.0) || (green_gamma != 1.0) ||
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
for (x=0; x < (int) canvas->columns; x++)
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,canvas->columns,1,
- &canvas->exception);
+ exception);
if (p == (const Quantum *) NULL)
break;
bit=0;
(void) FormatLocaleString(size,MaxTextExtent,"%.20gx%.20g",(double)
image->columns,(double) image->rows);
image_info->size=ConstantString(size);
- pattern=ReadImage(image_info,&image->exception);
+ pattern=ReadImage(image_info,exception);
image_info=DestroyImageInfo(image_info);
if (pattern != (Image *) NULL)
{
- canvas=CloneImage(image,0,0,MagickTrue,&image->exception);
+ canvas=CloneImage(image,0,0,MagickTrue,exception);
if (canvas != (Image *) NULL)
(void) CompositeImage(canvas,DstOverCompositeOp,pattern,0,0,
exception);
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,canvas->columns,1,
- &canvas->exception);
+ exception);
if (p == (const Quantum *) NULL)
break;
bit=0;
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
nibble=0;
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
nibble=0;
if (resource_info->color_recovery &&
resource_info->quantize_info->dither)
{
- XDitherImage(canvas,ximage);
+ XDitherImage(canvas,ximage,exception);
break;
}
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
for (x=0; x < (int) canvas->columns; x++)
{
- pixel=pixels[(ssize_t)
- GetPixelIndex(canvas,p)];
+ pixel=pixels[(ssize_t) GetPixelIndex(canvas,p)];
*q++=(unsigned char) pixel;
p+=GetPixelChannels(canvas);
}
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
for (x=0; x < (int) canvas->columns; x++)
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
nibble=0;
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
nibble=0;
if (resource_info->color_recovery &&
resource_info->quantize_info->dither)
{
- XDitherImage(canvas,ximage);
+ XDitherImage(canvas,ximage,exception);
break;
}
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
for (x=(int) canvas->columns-1; x >= 0; x--)
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
if ((red_gamma != 1.0) || (green_gamma != 1.0) ||
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
if ((red_gamma != 1.0) || (green_gamma != 1.0) ||
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,
- canvas->columns,1,&canvas->exception);
+ canvas->columns,1,exception);
if (p == (const Quantum *) NULL)
break;
for (x=(int) canvas->columns-1; x >= 0; x--)
for (y=0; y < (int) canvas->rows; y++)
{
p=GetCacheViewVirtualPixels(canvas_view,0,(ssize_t) y,canvas->columns,1,
- &canvas->exception);
+ exception);
if (p == (const Quantum *) NULL)
break;
bit=0;
%
% The format of the XMakeMagnifyImage method is:
%
-% void XMakeMagnifyImage(display,windows)
+% void XMakeMagnifyImage(Display *display,XWindows *windows,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
% o windows: Specifies a pointer to a XWindows structure.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
-MagickPrivate void XMakeMagnifyImage(Display *display,XWindows *windows)
+MagickPrivate void XMakeMagnifyImage(Display *display,XWindows *windows,
+ ExceptionInfo *exception)
{
char
tuple[MaxTextExtent];
Show center pixel color.
*/
(void) GetOneVirtualMagickPixel(windows->image.image,(ssize_t)
- windows->magnify.x,(ssize_t) windows->magnify.y,&pixel,
- &windows->image.image->exception);
+ windows->magnify.x,(ssize_t) windows->magnify.y,&pixel,exception);
(void) FormatLocaleString(tuple,MaxTextExtent,"%d,%d: ",
windows->magnify.x,windows->magnify.y);
(void) ConcatenateMagickString(tuple,"(",MaxTextExtent);
(void) XDrawImageString(display,windows->magnify.pixmap,
windows->magnify.annotate_context,x,y,tuple,(int) strlen(tuple));
(void) QueryColorname(windows->image.image,&pixel,SVGCompliance,tuple,
- &windows->image.image->exception);
+ exception);
y+=height;
(void) XDrawImageString(display,windows->magnify.pixmap,
windows->magnify.annotate_context,x,y,tuple,(int) strlen(tuple));
%
% The format of the XMakeStandardColormap method is:
%
-% XMakeStandardColormap(display,visual_info,resource_info,image,
-% map_info,pixel)
+% void XMakeStandardColormap(Display *display,XVisualInfo *visual_info,
+% XResourceInfo *resource_info,Image *image,XStandardColormap *map_info,
+% XPixelInfo *pixel,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
% o pixel: Specifies a pointer to a XPixelInfo structure.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
#if defined(__cplusplus) || defined(c_plusplus)
MagickPrivate void XMakeStandardColormap(Display *display,
XVisualInfo *visual_info,XResourceInfo *resource_info,Image *image,
- XStandardColormap *map_info,XPixelInfo *pixel)
+ XStandardColormap *map_info,XPixelInfo *pixel,ExceptionInfo *exception)
{
Colormap
colormap;
- ExceptionInfo
- *exception;
-
register ssize_t
i;
assert(map_info != (XStandardColormap *) NULL);
assert(resource_info != (XResourceInfo *) NULL);
assert(pixel != (XPixelInfo *) NULL);
- exception=(&image->exception);
if (resource_info->map_type != (char *) NULL)
{
/*
/*
Improve image appearance with error diffusion.
*/
- affinity_image=AcquireImage((ImageInfo *) NULL,&image->exception);
+ affinity_image=AcquireImage((ImageInfo *) NULL,exception);
if (affinity_image == (Image *) NULL)
ThrowXWindowFatalException(ResourceLimitFatalError,
"UnableToDitherImage",image->filename);