xwindow.c File Reference

#include "magick/studio.h"
#include "magick/animate.h"
#include "magick/artifact.h"
#include "magick/blob.h"
#include "magick/cache.h"
#include "magick/client.h"
#include "magick/color.h"
#include "magick/color-private.h"
#include "magick/colormap.h"
#include "magick/composite.h"
#include "magick/display.h"
#include "magick/distort.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/geometry.h"
#include "magick/identify.h"
#include "magick/image.h"
#include "magick/image-private.h"
#include "magick/list.h"
#include "magick/locale_.h"
#include "magick/log.h"
#include "magick/magick.h"
#include "magick/memory_.h"
#include "magick/memory-private.h"
#include "magick/monitor.h"
#include "magick/nt-base-private.h"
#include "magick/option.h"
#include "magick/quantize.h"
#include "magick/quantum.h"
#include "magick/quantum-private.h"
#include "magick/resource_.h"
#include "magick/resize.h"
#include "magick/statistic.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/token.h"
#include "magick/transform.h"
#include "magick/utility.h"
#include "magick/widget.h"
#include "magick/xwindow.h"
#include "magick/xwindow-private.h"
#include "magick/version.h"
#include <X11/Xproto.h>
#include <X11/Xlocale.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <X11/extensions/XShm.h>
#include <X11/extensions/shape.h>
Include dependency graph for xwindow.c:

Data Structures

struct  _DiversityPacket

Defines

#define XBlueGamma(color)
#define XGammaPixel(map, color)
#define XGreenGamma(color)
#define XRedGamma(color)
#define XStandardPixel(map, color)
#define AccentuateModulate   ScaleCharToQuantum(80)
#define HighlightModulate   ScaleCharToQuantum(125)
#define ShadowModulate   ScaleCharToQuantum(135)
#define DepthModulate   ScaleCharToQuantum(185)
#define TroughModulate   ScaleCharToQuantum(110)
#define XLIB_ILLEGAL_ACCESS   1
#define XFD_SET   fd_set
#define MaxStandardColormaps   7
#define XVisualColormapSize(visual_info)
#define scope_height   17
#define scope_x_hot   8
#define scope_y_hot   8
#define scope_width   17
#define CheckOverflowException(length, width, height)   (((height) != 0) && ((length)/((size_t) height) != ((size_t) width)))
#define MinWindowSize   64
#define MinimumCropArea   (unsigned int) 9

Typedefs

typedef struct _DiversityPacket DiversityPacket

Enumerations

enum  XColorFlags { DoRed = 0x0001, DoGreen = 0x0002, DoBlue = 0x0004, DoMatte = 0x0008 }

Functions

static const char * XVisualClassName (const int)
static MagickBooleanType XMakePixmap (Display *, const XResourceInfo *, XWindowInfo *)
static void XMakeImageLSBFirst (const XResourceInfo *, const XWindowInfo *, Image *, XImage *, XImage *)
static void XMakeImageMSBFirst (const XResourceInfo *, const XWindowInfo *, Image *, XImage *, XImage *)
static Window XSelectWindow (Display *, RectangleInfo *)
MagickExport void DestroyXResources (void)
MagickExport MagickBooleanType XAnnotateImage (Display *display, const XPixelInfo *pixel, XAnnotateInfo *annotate_info, Image *image)
static char ** FontToList (char *font)
MagickExport XFontStruct * XBestFont (Display *display, const XResourceInfo *resource_info, const MagickBooleanType text_font)
MagickExport void XBestIconSize (Display *display, XWindowInfo *window, Image *image)
MagickExport void XBestPixel (Display *display, const Colormap colormap, XColor *colors, unsigned int number_colors, XColor *color)
MagickExport XVisualInfo * XBestVisualInfo (Display *display, XStandardColormap *map_info, XResourceInfo *resource_info)
MagickExport int XCheckDefineCursor (Display *display, Window window, Cursor cursor)
MagickExport void XCheckRefreshWindows (Display *display, XWindows *windows)
MagickExport void XClientMessage (Display *display, const Window window, const Atom protocol, const Atom reason, const Time timestamp)
static Window XClientWindow (Display *display, Window target_window)
MagickExport void XComponentTerminus (void)
MagickExport void XConfigureImageColormap (Display *display, XResourceInfo *resource_info, XWindows *windows, Image *image)
MagickExport void XConstrainWindowPosition (Display *display, XWindowInfo *window_info)
MagickExport void XDelay (Display *display, const size_t milliseconds)
MagickExport void XDestroyResourceInfo (XResourceInfo *resource_info)
MagickExport void XDestroyWindowColors (Display *display, Window window)
MagickExport void XDisplayImageInfo (Display *display, const XResourceInfo *resource_info, XWindows *windows, Image *undo_image, Image *image)
static void XDitherImage (Image *image, XImage *ximage)
MagickExport MagickBooleanType XDrawImage (Display *display, const XPixelInfo *pixel, XDrawInfo *draw_info, Image *image)
MagickExport int XError (Display *display, XErrorEvent *error)
MagickExport void XFreeResources (Display *display, XVisualInfo *visual_info, XStandardColormap *map_info, XPixelInfo *pixel, XFontStruct *font_info, XResourceInfo *resource_info, XWindowInfo *window_info)
MagickExport void XFreeStandardColormap (Display *display, const XVisualInfo *visual_info, XStandardColormap *map_info, XPixelInfo *pixel)
MagickExport void XGetAnnotateInfo (XAnnotateInfo *annotate_info)
MagickExport void XGetMapInfo (const XVisualInfo *visual_info, const Colormap colormap, XStandardColormap *map_info)
MagickExport void XGetPixelPacket (Display *display, const XVisualInfo *visual_info, const XStandardColormap *map_info, const XResourceInfo *resource_info, Image *image, XPixelInfo *pixel)
MagickExport char * XGetResourceClass (XrmDatabase database, const char *client_name, const char *keyword, char *resource_default)
MagickExport XrmDatabase XGetResourceDatabase (Display *display, const char *client_name)
MagickExport void XGetResourceInfo (const ImageInfo *image_info, XrmDatabase database, const char *client_name, XResourceInfo *resource_info)
MagickExport char * XGetResourceInstance (XrmDatabase database, const char *client_name, const char *keyword, const char *resource_default)
MagickExport char * XGetScreenDensity (Display *display)
static Window XGetSubwindow (Display *display, Window window, int x, int y)
MagickExport MagickBooleanType XGetWindowColor (Display *display, XWindows *windows, char *name)
static ImageXGetWindowImage (Display *display, const Window window, const unsigned int borders, const unsigned int level)
MagickExport void XGetWindowInfo (Display *display, XVisualInfo *visual_info, XStandardColormap *map_info, XPixelInfo *pixel, XFontStruct *font_info, XResourceInfo *resource_info, XWindowInfo *window)
MagickExport void XHighlightEllipse (Display *display, Window window, GC annotate_context, const RectangleInfo *highlight_info)
MagickExport void XHighlightLine (Display *display, Window window, GC annotate_context, const XSegment *highlight_info)
MagickExport void XHighlightRectangle (Display *display, Window window, GC annotate_context, const RectangleInfo *highlight_info)
MagickExport ImageXImportImage (const ImageInfo *image_info, XImportInfo *ximage_info)
MagickExport XWindowsXInitializeWindows (Display *display, XResourceInfo *resource_info)
MagickExport Cursor XMakeCursor (Display *display, Window window, Colormap colormap, char *background_color, char *foreground_color)
MagickExport MagickBooleanType XMakeImage (Display *display, const XResourceInfo *resource_info, XWindowInfo *window, Image *image, unsigned int width, unsigned int height)
MagickExport void XMakeMagnifyImage (Display *display, XWindows *windows)
static MagickRealType DiversityPixelIntensity (const DiversityPacket *pixel)
static int IntensityCompare (const void *x, const void *y)
static int PopularityCompare (const void *x, const void *y)
static Quantum ScaleXToQuantum (const size_t x, const size_t scale)
MagickExport void XMakeStandardColormap (Display *display, XVisualInfo *visual_info, XResourceInfo *resource_info, Image *image, XStandardColormap *map_info, XPixelInfo *pixel)
MagickExport void XMakeWindow (Display *display, Window parent, char **argv, int argc, XClassHint *class_hint, XWMHints *manager_hints, XWindowInfo *window_info)
static const char * GetLocaleMonitorMessage (const char *text)
MagickExport MagickBooleanType XMagickProgressMonitor (const char *tag, const MagickOffsetType quantum, const MagickSizeType span, void *magick_unused(client_data))
MagickExport MagickBooleanType XQueryColorDatabase (const char *target, XColor *color)
MagickExport void XQueryPosition (Display *display, const Window window, int *x, int *y)
MagickExport void XRefreshWindow (Display *display, const XWindowInfo *window, const XEvent *event)
MagickExport MagickBooleanType XRemoteCommand (Display *display, const char *window, const char *filename)
MagickPrivate MagickBooleanType XRenderImage (Image *image, const DrawInfo *draw_info, const PointInfo *offset, TypeMetric *metrics)
MagickExport void XRetainWindowColors (Display *display, const Window window)
MagickExport void XSetCursorState (Display *display, XWindows *windows, const MagickStatusType state)
MagickExport XWindowsXSetWindows (XWindows *windows_info)
MagickExport void XUserPreferences (XResourceInfo *resource_info)
MagickExport void XWarning (const ExceptionType magick_unused(warning), const char *reason, const char *description)
MagickExport Window XWindowByID (Display *display, const Window root_window, const size_t id)
MagickExport Window XWindowByName (Display *display, const Window root_window, const char *name)
MagickExport Window XWindowByProperty (Display *display, const Window window, const Atom property)
MagickExport MagickBooleanType XComponentGenesis (void)
MagickExport void XGetImportInfo (XImportInfo *ximage_info)

Variables

static MagickBooleanType xerror_alert = MagickFalse
static MagickRealType blue_gamma = 1.0
static MagickRealType green_gamma = 1.0
static MagickRealType red_gamma = 1.0

Define Documentation

#define AccentuateModulate   ScaleCharToQuantum(80)
#define CheckOverflowException ( length,
width,
height   )     (((height) != 0) && ((length)/((size_t) height) != ((size_t) width)))

Referenced by XMakeImage().

#define DepthModulate   ScaleCharToQuantum(185)
#define HighlightModulate   ScaleCharToQuantum(125)
#define MaxStandardColormaps   7

Referenced by XBestVisualInfo().

#define MinimumCropArea   (unsigned int) 9

Referenced by XSelectWindow().

#define MinWindowSize   64
#define scope_height   17

Referenced by XMakeCursor().

#define scope_width   17

Referenced by XMakeCursor().

#define scope_x_hot   8

Referenced by XMakeCursor().

#define scope_y_hot   8

Referenced by XMakeCursor().

#define ShadowModulate   ScaleCharToQuantum(135)
#define TroughModulate   ScaleCharToQuantum(110)
#define XBlueGamma ( color   ) 
Value:
ClampToQuantum(blue_gamma == 1.0 ? (double) \
  (color) : ((pow(((double) QuantumScale*(color)),1.0/(double) blue_gamma)* \
  QuantumRange)))

Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().

#define XFD_SET   fd_set

Referenced by MagickDelay().

#define XGammaPixel ( map,
color   ) 
Value:
(size_t) (map->base_pixel+ \
  ((ScaleQuantumToShort(XRedGamma((color)->red))*map->red_max/65535L)* \
    map->red_mult)+ \
  ((ScaleQuantumToShort(XGreenGamma((color)->green))*map->green_max/65535L)* \
    map->green_mult)+ \
  ((ScaleQuantumToShort(XBlueGamma((color)->blue))*map->blue_max/65535L)* \
    map->blue_mult))

Referenced by XGetPixelPacket(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().

#define XGreenGamma ( color   ) 
Value:
ClampToQuantum(green_gamma == 1.0 ? (double) \
  (color) : ((pow(((double) QuantumScale*(color)),1.0/(double) green_gamma)* \
  QuantumRange)))

Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().

#define XLIB_ILLEGAL_ACCESS   1
#define XRedGamma ( color   ) 
Value:
ClampToQuantum(red_gamma == 1.0 ? (double) \
  (color) : ((pow(((double) QuantumScale*(color)),1.0/(double) red_gamma)* \
  QuantumRange)))

Referenced by XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().

#define XStandardPixel ( map,
color   ) 
Value:
(size_t) (map->base_pixel+ \
  (((color)->red*map->red_max/65535L)*map->red_mult)+ \
  (((color)->green*map->green_max/65535L)*map->green_mult)+ \
  (((color)->blue*map->blue_max/65535L)*map->blue_mult))

Referenced by XGetPixelPacket(), and XMakeStandardColormap().

#define XVisualColormapSize ( visual_info   ) 
Value:
MagickMin((unsigned int) (\
  (visual_info->klass == TrueColor) || (visual_info->klass == DirectColor) ? \
   visual_info->red_mask | visual_info->green_mask | visual_info->blue_mask : \
   (unsigned long) visual_info->colormap_size),1UL << visual_info->depth)

Referenced by XBestVisualInfo().


Typedef Documentation


Enumeration Type Documentation

Enumerator:
DoRed 
DoGreen 
DoBlue 
DoMatte 

Function Documentation

MagickExport void DestroyXResources ( void   ) 
static MagickRealType DiversityPixelIntensity ( const DiversityPacket pixel  )  [inline, static]
static char** FontToList ( char *  font  )  [static]
static const char* GetLocaleMonitorMessage ( const char *  text  )  [static]
static int IntensityCompare ( const void *  x,
const void *  y 
) [static]
static int PopularityCompare ( const void *  x,
const void *  y 
) [static]
static Quantum ScaleXToQuantum ( const size_t  x,
const size_t  scale 
) [inline, static]

References QuantumRange.

Referenced by XMakeStandardColormap().

MagickExport MagickBooleanType XAnnotateImage ( Display *  display,
const XPixelInfo pixel,
XAnnotateInfo annotate_info,
Image image 
)
MagickExport XFontStruct* XBestFont ( Display *  display,
const XResourceInfo resource_info,
const MagickBooleanType  text_font 
)
MagickExport void XBestIconSize ( Display *  display,
XWindowInfo window,
Image image 
)
MagickExport void XBestPixel ( Display *  display,
const Colormap  colormap,
XColor *  colors,
unsigned int  number_colors,
XColor *  color 
)
MagickExport XVisualInfo* XBestVisualInfo ( Display *  display,
XStandardColormap *  map_info,
XResourceInfo resource_info 
)
MagickExport int XCheckDefineCursor ( Display *  display,
Window  window,
Cursor  cursor 
)
MagickExport void XCheckRefreshWindows ( Display *  display,
XWindows windows 
)
MagickExport void XClientMessage ( Display *  display,
const Window  window,
const Atom  protocol,
const Atom  reason,
const Time  timestamp 
)

References MagickFalse, and XSendEvent.

static Window XClientWindow ( Display *  display,
Window  target_window 
) [static]
MagickExport MagickBooleanType XComponentGenesis ( void   ) 

References MagickTrue.

MagickExport void XComponentTerminus ( void   ) 

References DestroyXResources().

MagickExport void XConfigureImageColormap ( Display *  display,
XResourceInfo resource_info,
XWindows windows,
Image image 
)
MagickExport void XConstrainWindowPosition ( Display *  display,
XWindowInfo window_info 
)
MagickExport void XDelay ( Display *  display,
const size_t  milliseconds 
)

References MagickDelay(), and XFlush.

MagickExport void XDestroyResourceInfo ( XResourceInfo resource_info  ) 
MagickExport void XDestroyWindowColors ( Display *  display,
Window  window 
)
MagickExport void XDisplayImageInfo ( Display *  display,
const XResourceInfo resource_info,
XWindows windows,
Image undo_image,
Image image 
)
static void XDitherImage ( Image image,
XImage *  ximage 
) [static]
MagickExport MagickBooleanType XDrawImage ( Display *  display,
const XPixelInfo pixel,
XDrawInfo draw_info,
Image image 
)

References AcquireAuthenticCacheView(), AcquireImage(), _Image::background_color, CircleElement, _Image::columns, CompositeImage(), _XDrawInfo::coordinate_info, CopyOpacityCompositeOp, _Image::debug, _XDrawInfo::degrees, DestroyCacheView(), DestroyImage(), DirectClass, _XDrawInfo::element, EllipseElement, _Image::exception, FillCircleElement, FillEllipseElement, FillPolygonElement, FillRectangleElement, FormatLocaleString(), _XDrawInfo::geometry, GetCacheViewAuthenticPixels(), GetMagickModule, GetOneVirtualPixel(), _RectangleInfo::height, _XDrawInfo::height, _XDrawInfo::line_info, _XDrawInfo::line_width, LineElement, LogMagickEvent(), magick_restrict, MagickFalse, MagickTrue, _Image::matte, MaxTextExtent, _XDrawInfo::number_coordinates, _PixelPacket::opacity, OpaqueOpacity, OpaqueStencil, OverCompositeOp, _XPixelInfo::pen_color, PointElement, PolygonElement, QueueCacheViewAuthenticPixels(), _XDrawInfo::rectangle_info, RectangleElement, RotateImage(), _Image::rows, ScaleShortToQuantum(), SetImageStorageClass(), SetPixelBlue, SetPixelGreen, SetPixelOpacity, SetPixelRed, _XDrawInfo::stencil, _XDrawInfo::stipple, SyncCacheViewAuthenticPixels(), TraceEvent, TransformImage(), TransparentOpacity, TransparentStencil, _RectangleInfo::width, _XDrawInfo::width, _RectangleInfo::x, XCreateGC, XCreatePixmap, XDefaultDepth, XDefaultScreen, XDrawArc, XDrawLine, XDrawLines, XDrawRectangle, XFillArc, XFillPolygon, XFillRectangle, XFreeGC, XFreePixmap, XGetImage, XParseGeometry, XRootWindow, XSetBackground, XSetFillStyle, XSetForeground, XSetStipple, and _RectangleInfo::y.

MagickExport int XError ( Display *  display,
XErrorEvent *  error 
)
MagickExport void XFreeResources ( Display *  display,
XVisualInfo *  visual_info,
XStandardColormap *  map_info,
XPixelInfo pixel,
XFontStruct *  font_info,
XResourceInfo resource_info,
XWindowInfo window_info 
)
MagickExport void XFreeStandardColormap ( Display *  display,
const XVisualInfo *  visual_info,
XStandardColormap *  map_info,
XPixelInfo pixel 
)
MagickExport void XGetAnnotateInfo ( XAnnotateInfo annotate_info  ) 
MagickExport void XGetImportInfo ( XImportInfo ximage_info  ) 
MagickExport void XGetMapInfo ( const XVisualInfo *  visual_info,
const Colormap  colormap,
XStandardColormap *  map_info 
)
MagickExport void XGetPixelPacket ( Display *  display,
const XVisualInfo *  visual_info,
const XStandardColormap *  map_info,
const XResourceInfo resource_info,
Image image,
XPixelInfo pixel 
)
MagickExport char* XGetResourceClass ( XrmDatabase  database,
const char *  client_name,
const char *  keyword,
char *  resource_default 
)
MagickExport XrmDatabase XGetResourceDatabase ( Display *  display,
const char *  client_name 
)
MagickExport void XGetResourceInfo ( const ImageInfo image_info,
XrmDatabase  database,
const char *  client_name,
XResourceInfo resource_info 
)

References AcquireString(), _XResourceInfo::backdrop, _XResourceInfo::background_color, _XResourceInfo::border_color, _XResourceInfo::border_width, BorderColor, _XResourceInfo::client_name, CloneQuantizeInfo(), _XResourceInfo::close_server, _XResourceInfo::color_recovery, _XResourceInfo::colormap, _XResourceInfo::confirm_edit, _XResourceInfo::confirm_exit, ConstantString(), _XResourceInfo::delay, _XResourceInfo::display_gamma, _XResourceInfo::display_warnings, _XResourceInfo::font, _XResourceInfo::font_name, _XResourceInfo::foreground_color, ForegroundColor, _XResourceInfo::gamma_correct, GetMagickModule, _XResourceInfo::gravity, _XResourceInfo::home_directory, _XResourceInfo::icon_geometry, _XResourceInfo::iconic, _XResourceInfo::image_geometry, _XResourceInfo::image_info, _XResourceInfo::immutable, IsMagickTrue(), LocaleCompare(), LogMagickEvent(), MagickFalse, MagickGravityOptions, MagickTrue, _XResourceInfo::magnify, _XResourceInfo::map_type, _XResourceInfo::matte_color, MaxTextExtent, _XResourceInfo::name, OptionError, ParseCommandOption(), _XResourceInfo::pause, _XResourceInfo::pen_colors, PrivateColormap, _XResourceInfo::quantize_info, _XResourceInfo::quantum, _XResourceInfo::resource_database, SetImageInfoProgressMonitor(), SharedColormap, StringToLong(), StringToUnsignedLong(), _XResourceInfo::text_font, ThrowXWindowException, _XResourceInfo::title, TraceEvent, UndefinedColormap, _XResourceInfo::undo_cache, _XResourceInfo::update, _XResourceInfo::use_pixmap, _XResourceInfo::use_shared_memory, _XResourceInfo::visual_type, _XResourceInfo::window_group, _XResourceInfo::window_id, _XResourceInfo::write_filename, XGetResourceClass(), XGetResourceInstance(), and XMagickProgressMonitor().

MagickExport char* XGetResourceInstance ( XrmDatabase  database,
const char *  client_name,
const char *  keyword,
const char *  resource_default 
)
MagickExport char* XGetScreenDensity ( Display *  display  ) 
static Window XGetSubwindow ( Display *  display,
Window  window,
int  x,
int  y 
) [static]
MagickExport MagickBooleanType XGetWindowColor ( Display *  display,
XWindows windows,
char *  name 
)
static Image* XGetWindowImage ( Display *  display,
const Window  window,
const unsigned int  borders,
const unsigned int  level 
) [static]
MagickExport void XGetWindowInfo ( Display *  display,
XVisualInfo *  visual_info,
XStandardColormap *  map_info,
XPixelInfo pixel,
XFontStruct *  font_info,
XResourceInfo resource_info,
XWindowInfo window 
)

References AcquireCriticalMemory(), AcquireString(), _XPixelInfo::annotate_context, _XWindowInfo::annotate_context, _XWindowInfo::attributes, _XPixelInfo::background_color, _XPixelInfo::border_color, _XResourceInfo::border_width, _XWindowInfo::border_width, _XWindowInfo::busy_cursor, CloneString(), _XWindowInfo::crop_geometry, _XWindowInfo::cursor, _XWindowInfo::data, _XWindowInfo::depth, _XWindowInfo::flags, _XWindowInfo::font_info, ForgetGravity, _XWindowInfo::geometry, GetMagickModule, _XWindowInfo::height, _XWindowInfo::height_inc, _XPixelInfo::highlight_context, _XWindowInfo::highlight_context, _XWindowInfo::highlight_stipple, _XResourceInfo::icon_geometry, _XWindowInfo::icon_geometry, _XWindowInfo::icon_name, _XWindowInfo::id, _XWindowInfo::immutable, LogMagickEvent(), MagickFalse, MagickTrue, _XWindowInfo::map_info, _XWindowInfo::mapped, _XWindowInfo::mask, _XWindowInfo::matte_image, _XWindowInfo::matte_pixmap, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWindowInfo::name, NorthWestGravity, _XWindowInfo::orphan, _XWindowInfo::pixel_info, _XWindowInfo::pixmap, _XWindowInfo::root, _XWindowInfo::screen, _XWindowInfo::segment_info, _XWindowInfo::shadow_stipple, _XWindowInfo::shape, _XWindowInfo::shared_memory, _XWindowInfo::stasis, _XWindowInfo::storage_class, TraceEvent, _XWindowInfo::use_pixmap, _XWindowInfo::visual, _XWindowInfo::visual_info, _XPixelInfo::widget_context, _XWindowInfo::widget_context, _XWindowInfo::width, _XWindowInfo::width_inc, _XWindowInfo::x, XCreateFontCursor, XDisplayWidth, XFreeCursor, XFreePixmap, _XWindowInfo::ximage, XRootWindow, and _XWindowInfo::y.

MagickExport void XHighlightEllipse ( Display *  display,
Window  window,
GC  annotate_context,
const RectangleInfo highlight_info 
)
MagickExport void XHighlightLine ( Display *  display,
Window  window,
GC  annotate_context,
const XSegment *  highlight_info 
)
MagickExport void XHighlightRectangle ( Display *  display,
Window  window,
GC  annotate_context,
const RectangleInfo highlight_info 
)
MagickExport Image* XImportImage ( const ImageInfo image_info,
XImportInfo ximage_info 
)
MagickExport XWindows* XInitializeWindows ( Display *  display,
XResourceInfo resource_info 
)
MagickExport MagickBooleanType XMagickProgressMonitor ( const char *  tag,
const MagickOffsetType  quantum,
const MagickSizeType  span,
void *  magick_unusedclient_data 
)
MagickExport Cursor XMakeCursor ( Display *  display,
Window  window,
Colormap  colormap,
char *  background_color,
char *  foreground_color 
)
MagickExport MagickBooleanType XMakeImage ( Display *  display,
const XResourceInfo resource_info,
XWindowInfo window,
Image image,
unsigned int  width,
unsigned int  height 
)
static void XMakeImageLSBFirst ( const XResourceInfo resource_info,
const XWindowInfo window,
Image image,
XImage *  ximage,
XImage *  matte_image 
) [static]
static void XMakeImageMSBFirst ( const XResourceInfo resource_info,
const XWindowInfo window,
Image image,
XImage *  ximage,
XImage *  matte_image 
)
MagickExport void XMakeMagnifyImage ( Display *  display,
XWindows windows 
)
static MagickBooleanType XMakePixmap ( Display *  display,
const XResourceInfo resource_info,
XWindowInfo window 
) [static]
MagickExport void XMakeStandardColormap ( Display *  display,
XVisualInfo *  visual_info,
XResourceInfo resource_info,
Image image,
XStandardColormap *  map_info,
XPixelInfo pixel 
)

References AcquireAuthenticCacheView(), AcquireImage(), AcquireQuantumMemory(), _XPixelInfo::background_color, _DiversityPacket::blue, _PixelPacket::blue, _XPixelInfo::border_color, _XResourceInfo::color_recovery, _XResourceInfo::colormap, _Image::colormap, Colormap, _XPixelInfo::colors, _Image::colors, _Image::columns, _DiversityPacket::count, _XPixelInfo::depth_color, DestroyCacheView(), DestroyImage(), DirectClass, _QuantizeInfo::dither, DoBlue, DoGreen, DoRed, _Image::exception, _Image::filename, _XPixelInfo::foreground_color, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelIndex, _DiversityPacket::green, _PixelPacket::green, _XPixelInfo::highlight_color, _DiversityPacket::index, IntensityCompare(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickFalse, MagickMax, MagickMin, MagickTrue, _XResourceInfo::map_type, _Image::matte, _XPixelInfo::matte_color, MaxColormapSize, MaxNumberPens, _QuantizeInfo::number_colors, _XPixelInfo::pen_colors, _XPixelInfo::pixels, PopularityCompare(), PrivateColormap, _XResourceInfo::quantize_info, QuantizeImage(), QueueAuthenticPixels(), _DiversityPacket::red, _PixelPacket::red, RelinquishMagickMemory(), RemapImage(), ResourceLimitFatalError, _Image::rows, ScaleQuantumToShort(), ScaleXToQuantum(), SetImageStorageClass(), SetPixelBlue, SetPixelGreen, SetPixelOpacity, SetPixelRed, _XPixelInfo::shadow_color, SharedColormap, _Image::storage_class, SyncAuthenticPixels(), ThrowXWindowFatalException, TraceEvent, TransparentOpacity, _XPixelInfo::trough_color, X11Event, XAllocColor, XAllocColorCells, XBestPixel(), XBlueGamma, XCopyColormapAndFree, XCreateColormap, XDefaultColormap, XDefaultVisual, XFreeStandardColormap(), XGetMapInfo(), XGetPixelPacket(), XGreenGamma, XPixelIntensity(), XQueryColors, XRedGamma, XRootWindow, XStandardPixel, and XStoreColors.

MagickExport void XMakeWindow ( Display *  display,
Window  parent,
char **  argv,
int  argc,
XClassHint *  class_hint,
XWMHints *  manager_hints,
XWindowInfo window_info 
)
MagickExport MagickBooleanType XQueryColorDatabase ( const char *  target,
XColor *  color 
)
MagickExport void XQueryPosition ( Display *  display,
const Window  window,
int *  x,
int *  y 
)
MagickExport void XRefreshWindow ( Display *  display,
const XWindowInfo window,
const XEvent *  event 
)
MagickExport MagickBooleanType XRemoteCommand ( Display *  display,
const char *  window,
const char *  filename 
)
MagickPrivate MagickBooleanType XRenderImage ( Image image,
const DrawInfo draw_info,
const PointInfo offset,
TypeMetric metrics 
)

References AcquireImageInfo(), AcquireString(), _DrawInfo::affine, _XPixelInfo::annotate_context, AnnotateEvent, _TypeMetric::ascent, _XResourceInfo::background_color, _PixelPacket::blue, _TypeMetric::bounds, CloneString(), _XResourceInfo::close_server, Colormap, _XResourceInfo::colormap, _Image::debug, _XAnnotateInfo::degrees, _TypeMetric::descent, ExpandAffine(), _Image::filename, _DrawInfo::fill, _DrawInfo::font, _XResourceInfo::font, _XAnnotateInfo::font_info, _XResourceInfo::foreground_color, ForegroundStencil, FormatLocaleString(), _XAnnotateInfo::geometry, GetClientName(), GetMagickModule, _PixelPacket::green, _TypeMetric::height, _XAnnotateInfo::height, _DrawInfo::interline_spacing, LogMagickEvent(), MagickFalse, MagickPI, MagickTrue, _TypeMetric::max_advance, MaxTextExtent, _PixelPacket::opacity, _XPixelInfo::pen_color, _XPixelInfo::pixels, _TypeMetric::pixels_per_em, _DrawInfo::pointsize, PrivateColormap, _PixelPacket::red, _DrawInfo::render, ResourceLimitError, _AffineMatrix::rx, _AffineMatrix::ry, ScaleQuantumToShort(), _DrawInfo::server_name, _XAnnotateInfo::stencil, _AffineMatrix::sx, _AffineMatrix::sy, _DrawInfo::text, _XAnnotateInfo::text, ThrowXWindowException, TransparentOpacity, _TypeMetric::underline_position, _TypeMetric::underline_thickness, _TypeMetric::width, _XAnnotateInfo::width, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, XAllocStandardColormap, XAnnotateImage(), XBestFont(), XBestVisualInfo(), XDefaultColormap, XDefaultGC, XError(), XFreeFont, XFreeResources(), XGetAnnotateInfo(), XGetMapInfo(), XGetPixelPacket(), XGetResourceDatabase(), XGetResourceInfo(), XOpenDisplay, XServerError, XSetErrorHandler, XTextWidth, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.

Referenced by RenderX11().

MagickExport void XRetainWindowColors ( Display *  display,
const Window  window 
)
static Window XSelectWindow ( Display *  display,
RectangleInfo crop_info 
) [static]
MagickExport void XSetCursorState ( Display *  display,
XWindows windows,
const MagickStatusType  state 
)
MagickExport XWindows* XSetWindows ( XWindows windows_info  ) 
MagickExport void XUserPreferences ( XResourceInfo resource_info  ) 
static const char * XVisualClassName ( const int  visual_class  )  [static]
MagickExport void XWarning ( const ExceptionType   magick_unusedwarning,
const char *  reason,
const char *  description 
)
MagickExport Window XWindowByID ( Display *  display,
const Window  root_window,
const size_t  id 
)
MagickExport Window XWindowByName ( Display *  display,
const Window  root_window,
const char *  name 
)
MagickExport Window XWindowByProperty ( Display *  display,
const Window  window,
const Atom  property 
)

Variable Documentation

MagickRealType blue_gamma = 1.0 [static]
MagickRealType green_gamma = 1.0 [static]
MagickRealType red_gamma = 1.0 [static]
MagickBooleanType xerror_alert = MagickFalse [static]

Referenced by XError(), and XMakeImage().


Generated on 31 Dec 2019 for MagickCore by  doxygen 1.6.1