Blob Blame History Raw
'\" t
...\" ScalePix.sgm /main/7 1996/10/02 11:48:13 cdedoc $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl			\" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl			\" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie     \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie     !\\*(f4 \{\
.	ft \\*(f4
.	ds f4\"
'	br \}
.el .ie !\\*(f3 \{\
.	ft \\*(f3
.	ds f3\"
'	br \}
.el .ie !\\*(f2 \{\
.	ft \\*(f2
.	ds f2\"
'	br \}
.el .ie !\\*(f1 \{\
.	ft \\*(f1
.	ds f1\"
'	br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
.TH "XmGetScaledPixmap" "library call"
.SH "NAME"
\fBXmGetScaledPixmap\fP \(em read a pixmap file and scale it according to pixmap and print resolution
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/Xm\&.h>
\fBXtEnum \fBXmGetScaledPixmap\fP\fR(
\fBWidget \fBwidget\fR\fR,
\fBString \fBimage_name\fR\fR,
\fBPixel \fBforeground\fR\fR,
\fBPixel \fBbackground\fR\fR,
\fBint \fBdepth\fR\fR,
\fBDouble \fBscaling_ratio\fR\fR);
.fi
.SH "DESCRIPTION"
.PP
\fBXmGetScaledPixmap\fP uses its
\fBWidget\fP
argument to look up
for a Print Shell ancestor to get the pixmap resolution
and the default printer resolution information to be used
if
\fBscaling_ratio\fP
\fB==0\fP\&.
.PP
If scaling is 0, and a valid PrintShell is present
\fBXmGetScaledPixmap\fP
applies a ratio equals to
(printer resolution / default pixmap resolution)
before creating the Pixmap on the widget\&'s Screen\&.
Otherwise, the
\fBscaling_ratio\fP
is used in scaling
both dimensions of the image being converted as a Pixmap\&.
.PP
\fBXmGetScaledPixmap\fP completes the
\fBXmGetPixmapByDepth\fP existing
API by making use of the
\fBXmNdefaultPixmapResolution\fP
of the rooting
\fBXmPrintShell\fP\&.
Refer to the
\fBXmGetPixmapByDepth\fP documentation for details\&.
.IP "\fIwidget\fP" 10
Widget used to determine the default pixmap resolution (of the print shell ancestor)\&.
.IP "\fIimage_name\fP" 10
See XmGetPixmapByDepth for description\&.
.IP "\fIforeground\fP" 10
See XmGetPixmapByDepth for description\&.
.IP "\fIbackground\fP" 10
See XmGetPixmapByDepth for description\&.
.IP "\fIdepth\fP" 10
See XmGetPixmapByDepth for description\&.
.IP "\fIscaling_ratio\fP" 10
Indicate the scaling ratio to be applied, or 0\&.
.SH "RETURN VALUE"
.PP
Returns Pixmap or NULL if failed\&.
.SH "ERRORS/WARNINGS"
.PP
Same as for \fBXmGetPixmapByDepth\fP\&.
.SH "SEE ALSO"
.PP
\fBXmPrintSetup\fP(3), \fBXmPrintShell\fP(3), \fBXmRedisplayWidget\fP(3)
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:29