logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ximage - functionality for displaying ASImages on X display libAfterImage/ximage.h

Author

       Sasha Vasko <sasha at aftercode dot net>
       libAfterImage/picture_ximage2asimage()

Description

       asimage2mask()   creates   new   pixmap  of  exactly  same  size  as  supplied  ASImage.  It  then  calls
       asimage2mask_ximage().  It then uses supplied gc, or creates new gc, to transfer XImage to the server and
       put it on Pixmap.  Missing scanlines get filled with 1s.

Descriptionlibafterimage/Pixmap2Asimage()

Example

       asview.c: ASView.5

Inputs

       asv    - pointer to valid ASVisual structure

       root   - root window of destination screen

       im     - source ASImage

       gc     - precreated GC to use for XImage transfer. If NULL, asimage2pixmap() will use DefaultGC.

       use_cached
              - If True will make asimage2pixmap() to use XImage attached to ASImage, instead  of  creating  new
              one. Only works if ASImage->ximage data member is not NULL.

Name

ximage - functionality for displaying ASImages on X display libAfterImage/ximage.h

Nameasimage2Alpha_Ximage()

Nameasimage2Mask()

Nameasimage2Mask_Ximage()

       - same as asimage2alpha_ximage(). Supplied for convenience and compatibility with older versions.

Nameasimage2Pixmap()

Nameasimage2Ximage()

Namepicture2Asimage()

Namepicture_Ximage2Asimage()

Namepixmap2Asimage()

Nameximage

       - Defines conversion to and from XImages and Pixmaps.

Nameximage2Asimage()

       -  same  as  picture_ximage2asimage  with alpha_ximage set to NULL. Supplied for compatibility with older
       versions and for convenience.

Notes

       Returned pointer to XImage will also be stored in im->alt.mask_ximage, and  It  will  be  destroyed  when
       XImage  is  destroyed, or reused in any subsequent calls to asimage2mask_ximage(). If any other behaviour
       is desired - make sure you set im->alt.mask_ximage to NULL, to dissociate XImage object from ASImage.
       libAfterImage/asimage2mask_ximage()

Return Value

       On success returns newly created pixmap of the colordepth 1.  None on failure.

See Also

       asimage2mask_ximage()

3rd Berkeley Distribution                      AfterStep v.2.2.12                                     ximage(3x)

Synopsis

       Pixmap   asimage2mask ( struct ASVisual *asv, Window root,
                               ASImage *im, GC gc, Bool use_cached); asv         -  pointer  to  valid  ASVisual
       structure  root        -  root  window  of  destination  screen  im         - source ASImage gc         -
       precreated GC for 1 bit deep drawables to use for
                    XImage transfer. If NULL, asimage2mask() will create one.  use_cached - If  True  will  make
       asimage2mask() to use mask XImage
                   attached to ASImage, instead of creating new one. Only
                   works if ASImage->alt.mask_ximage data member is not NULL.

See Also