%
% o text_font: True is font should be mono-spaced (typewriter style).
%
-%
*/
static char **FontToList(char *font)
% o ximage: Specifies a pointer to a XImage structure; returned from
% XCreateImage.
%
-%
*/
static void XDitherImage(Image *image,XImage *ximage)
{
% o y: the y coordinate of the pointer relative to the origin of the
% window.
%
-%
*/
static Window XGetSubwindow(Display *display,Window window,int x,int y)
{
% one call. A value of one causes the function to descend the window
% hierarchy and overlay the target image with each subwindow image.
%
-%
*/
static Image *XGetWindowImage(Display *display,const Window window,
const unsigned int borders,const unsigned int level)
*/
for (x=(int) canvas->columns-1; x >= 0; x--)
{
- *q++=ScaleQuantumToChar(XBlueGamma(GetBluePixelComponent(p)));
- *q++=ScaleQuantumToChar(XGreenGamma(GetGreenPixelComponent(p)));
- *q++=ScaleQuantumToChar(XRedGamma(GetRedPixelComponent(p)));
+ *q++=ScaleQuantumToChar(XBlueGamma(
+ GetBluePixelComponent(p)));
+ *q++=ScaleQuantumToChar(XGreenGamma(
+ GetGreenPixelComponent(p)));
+ *q++=ScaleQuantumToChar(XRedGamma(
+ GetRedPixelComponent(p)));
*q++=0;
p++;
}
*/
for (x=(int) canvas->columns-1; x >= 0; x--)
{
- *q++=ScaleQuantumToChar(XRedGamma(GetRedPixelComponent(p)));
- *q++=ScaleQuantumToChar(XGreenGamma(GetGreenPixelComponent(p)));
- *q++=ScaleQuantumToChar(XBlueGamma(GetBluePixelComponent(p)));
+ *q++=ScaleQuantumToChar(XRedGamma(
+ GetRedPixelComponent(p)));
+ *q++=ScaleQuantumToChar(XGreenGamma(
+ GetGreenPixelComponent(p)));
+ *q++=ScaleQuantumToChar(XBlueGamma(
+ GetBluePixelComponent(p)));
*q++=0;
p++;
}
}
for (x=(int) canvas->columns-1; x >= 0; x--)
{
- *q++=ScaleQuantumToChar((Quantum) GetRedPixelComponent(p));
- *q++=ScaleQuantumToChar((Quantum) GetGreenPixelComponent(p));
- *q++=ScaleQuantumToChar((Quantum) GetBluePixelComponent(p));
+ *q++=ScaleQuantumToChar((Quantum)
+ GetRedPixelComponent(p));
+ *q++=ScaleQuantumToChar((Quantum)
+ GetGreenPixelComponent(p));
+ *q++=ScaleQuantumToChar((Quantum)
+ GetBluePixelComponent(p));
*q++=0;
p++;
}
% o matte_image: Specifies a pointer to a XImage structure; returned from
% XCreateImage.
%
-%
*/
static void XMakeImageMSBFirst(const XResourceInfo *resource_info,
const XWindowInfo *window,Image *image,XImage *ximage,XImage *matte_image)
for (x=(int) canvas->columns-1; x >= 0; x--)
{
*q++=0;
- *q++=ScaleQuantumToChar(XRedGamma(GetRedPixelComponent(p)));
- *q++=ScaleQuantumToChar(XGreenGamma(GetGreenPixelComponent(p)));
- *q++=ScaleQuantumToChar(XBlueGamma(GetBluePixelComponent(p)));
+ *q++=ScaleQuantumToChar(XRedGamma(
+ GetRedPixelComponent(p)));
+ *q++=ScaleQuantumToChar(XGreenGamma(
+ GetGreenPixelComponent(p)));
+ *q++=ScaleQuantumToChar(XBlueGamma(
+ GetBluePixelComponent(p)));
p++;
}
continue;
for (x=(int) canvas->columns-1; x >= 0; x--)
{
*q++=0;
- *q++=ScaleQuantumToChar(XBlueGamma(GetBluePixelComponent(p)));
- *q++=ScaleQuantumToChar(XGreenGamma(GetGreenPixelComponent(p)));
- *q++=ScaleQuantumToChar(XRedGamma(GetRedPixelComponent(p)));
+ *q++=ScaleQuantumToChar(XBlueGamma(
+ GetBluePixelComponent(p)));
+ *q++=ScaleQuantumToChar(XGreenGamma(
+ GetGreenPixelComponent(p)));
+ *q++=ScaleQuantumToChar(XRedGamma(
+ GetRedPixelComponent(p)));
p++;
}
continue;
for (x=(int) canvas->columns-1; x >= 0; x--)
{
*q++=0;
- *q++=ScaleQuantumToChar((Quantum) GetBluePixelComponent(p));
- *q++=ScaleQuantumToChar((Quantum) GetGreenPixelComponent(p));
- *q++=ScaleQuantumToChar((Quantum) GetRedPixelComponent(p));
+ *q++=ScaleQuantumToChar((Quantum)
+ GetBluePixelComponent(p));
+ *q++=ScaleQuantumToChar((Quantum)
+ GetGreenPixelComponent(p));
+ *q++=ScaleQuantumToChar((Quantum)
+ GetRedPixelComponent(p));
p++;
}
}
%
% o window: Specifies a pointer to a XWindowInfo structure.
%
-%
*/
static MagickBooleanType XMakePixmap(Display *display,
const XResourceInfo *resource_info,XWindowInfo *window)
%
% o pixel: Specifies a pointer to a XPixelInfo structure.
%
-%
*/
#if defined(__cplusplus) || defined(c_plusplus)
% o crop_info: Specifies a pointer to a RectangleInfo structure. It
% contains the extents of any cropping rectangle.
%
-%
*/
static Window XSelectWindow(Display *display,RectangleInfo *crop_info)
{
%
% o class: Specifies the visual class.
%
-%
*/
static const char *XVisualClassName(const int visual_class)
{