SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from RedHat Other XITE-3.3-3.i386.rpm

IMAGERESIZE

Section: C Library Functions (3)
Updated: 16 Mar 1998
Index

 

NAME

ImageResize, ImageByteResize, ImageOverlayResize,ImageSignedByteResize, ImageUnsignedShortResize,ImageShortResize, ImageLongResize, ImageFloatResize,ImageDoubleResize - Resize XITE Image (pixeltype-specificroutines)

 

SYNTAX


 #include "imagePix.h"


 void ImageXxxxResize(ImageWidget wid, int x, int y,
    int width, int height);
 void ImageOverlayResize(ImageOverlayWidget wid, int x,
    int y, int width, int height);

 

DESCRIPTION

These functions resize the image of a particular pixeltype.They are called by the resize method (and thus also by theset_values method) of the Image widget supplied with the XITEdistribution.

Images with three-primary colormaps are also handled(DirectColor and TrueColor 24-bit visuals).

Byte-order for pixmaps and bitmaps is defined by the Xserver, not the client. These functions handle swappingof the byte-order for 24-bit DirectCololor, 24-bitTrueColor and 1-bit StaticGray visuals. For 8- and 4-bitvisual depths, no byte-swapping is necessary. The swappingcould have been done by XPutImage, if necessary, butdoing it in these functions requires no extra work.

One of these functions (depending on the pixeltype of theband at hand) should be called when any one of the followinghas changed:

- Widget instance variable scaletype
This determines linear lookup in colormap or thresholding

- Widget instance variables scalea or scaleb
These determine offset and inclination of linearity ifscaletype implies linear lookup

- Widget instance variables minval or maxval
These determine the range used in linear lookup

- Widget instance variable colorcells
If less than 256, colors will be repeated cyclicallybecause lookup indices will repeat cyclically

- Widget instance variable colorptr
Determines lookup indices

- Widget instance variable displaymethod
When switching between reduced colordisplay and full-colordisplay.

- Widget instance variables xptr or yptr
These tables determine transformation from image coordinates toscreen window coordinates in the event that the image iszoomed or panned

- Widget instance variable resize
This is zero if no geometric transformation is necessary

- Widget instance variables xpan, ypan, zoom
These are determined by zoom and pan (and influence thegeometric transformation tables)

- Overlay widget instance variables cells and colorptr
Determines lookup indices into colormap

 

SEE ALSO

Image(3), ImageOverlay(3), ImageFormat(3)

 

AUTHOR

Otto Milvang

 

REVISED

Svein Bøe

 

DOC

Svein Bøe

 

ID

$Id: ImageProtoPix.c,v 1.47 1997/03/24 11:29:10 svein Exp $


 

Index

NAME
SYNTAX
DESCRIPTION
SEE ALSO
AUTHOR
REVISED
DOC
ID

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector