|
NAMEXmGetScaledPixmap — read a pixmap file and scale it according to pixmap and print resolutionSYNOPSIS#include <Xm/Xm.h> XtEnum XmGetScaledPixmap( Widget widget, String image_name, Pixel foreground, Pixel background, int depth, Double scaling_ratio); DESCRIPTIONXmGetScaledPixmap uses its Widget argument to look up for a Print Shell ancestor to get the pixmap resolution and the default printer resolution information to be used if scaling_ratio ==0.If scaling is 0, and a valid PrintShell is present XmGetScaledPixmap applies a ratio equals to (printer resolution / default pixmap resolution) before creating the Pixmap on the widget's Screen. Otherwise, the scaling_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.
RETURN VALUEReturns Pixmap or NULL if failed.ERRORS/WARNINGSSame as for XmGetPixmapByDepth.SEE ALSOXmPrintSetup(3), XmPrintShell(3), XmRedisplayWidget(3) Visit the GSP FreeBSD Man Page Interface. |