Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
XmGetScaledPixmap(3)	    Library Functions Manual	    XmGetScaledPixmap(3)

NAME
     XmGetScaledPixmap	--  read  a pixmap file and scale it according to pixmap
     and print resolution

SYNOPSIS
     #include <Xm/Xm.h>
     XtEnum XmGetScaledPixmap(
     Widget widget,
     String image_name,
     Pixel foreground,
     Pixel background,
     int depth,
     Double scaling_ratio);

DESCRIPTION
     XmGetScaledPixmap uses its Widget argument to look up for a Print Shell an-
     cestor to get the pixmap resolution and the default printer resolution  in-
     formation to be used if scaling_ratio ==0.

     If  scaling  is  0, and a valid PrintShell is present XmGetScaledPixmap ap-
     plies a ratio equals to (printer resolution /  default  pixmap  resolution)
     before  creating  the  Pixmap on the widget's Screen.  Otherwise, the scal-
     ing_ratio is used in scaling both dimensions of the image	being  converted
     as a Pixmap.

     XmGetScaledPixmap	completes  the XmGetPixmapByDepth existing API by making
     use of the XmNdefaultPixmapResolution of the rooting  XmPrintShell.   Refer
     to the XmGetPixmapByDepth documentation for details.

     widget    Widget  used  to  determine the default pixmap resolution (of the
	       print shell ancestor).

     image_nameSee XmGetPixmapByDepth for description.

     foregroundSee XmGetPixmapByDepth for description.

     backgroundSee XmGetPixmapByDepth for description.

     depth     See XmGetPixmapByDepth for description.

     scaling_ratio
	       Indicate the scaling ratio to be applied, or 0.

RETURN VALUE
     Returns Pixmap or NULL if failed.

ERRORS/WARNINGS
     Same as for XmGetPixmapByDepth.

SEE ALSO
     XmPrintSetup(3), XmPrintShell(3), XmRedisplayWidget(3)

							    XmGetScaledPixmap(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=XmGetScaledPixmap&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help