Tk_CanvasPs
NAMESYNOPSIS
ARGUMENTS
DESCRIPTION
KEYWORDS
___________________________
NAME
Tk_CanvasPsY, Tk_CanvasPsBitmap, Tk_CanvasPsColor, Tk_CanvasPsFont, Tk_CanvasPsPath, Tk_CanvasPsStipple − utility procedures for generating Postscript for canvases
SYNOPSIS
#include <tk.h>
double
Tk_CanvasPsY(canvas, canvasY)
int
Tk_CanvasPsBitmap(interp, canvas, bitmap, x, y,
width, height)
int
Tk_CanvasPsColor(interp, canvas, colorPtr)
int
Tk_CanvasPsFont(interp, canvas, tkFont)
Tk_CanvasPsPath(interp, canvas, coordPtr, numPoints)
int
Tk_CanvasPsStipple(interp, canvas, bitmap)
ARGUMENTS
Tk_Canvas canvas (in) |
A token that identifies a canvas widget for which Postscript is being generated. | ||
double canvasY (in) |
Y-coordinate in the space of the canvas. | ||
Tcl_Interp *interp (in/out) |
A Tcl interpreter; Postscript is appended to its result, or the result may be replaced with an error message. | ||
Pixmap bitmap (in) |
Bitmap to use for generating Postscript. | ||
int x (in) |
X-coordinate within bitmap of left edge of region to output. | ||
int y (in) |
Y-coordinate within bitmap of top edge of region to output. | ||
int width (in) |
Width of region of bitmap to output, in pixels. | ||
int height (in) |
Height of region of bitmap to output, in pixels. | ||
XColor *colorPtr (in) |
Information about color value to set in Postscript. | ||
Tk_Font tkFont (in) |
Font for which Postscript is to be generated. | ||
double *coordPtr (in) |
Pointer to an array of coordinates for one or more points specified in canvas coordinates. The order of values in coordPtr is x1, y1, x2, y2, x3, y3, and so on. | ||
int numPoints (in) |
Number of points at coordPtr. |
______________
DESCRIPTION
These procedures are called by canvas type managers to carry out common functions related to generating Postscript. Most of the procedures take a canvas argument, which refers to a canvas widget for which Postscript is being generated.
Tk_CanvasPsY takes as argument a y-coordinate in the space of a canvas and returns the value that should be used for that point in the Postscript currently being generated for canvas. Y coordinates require transformation because Postscript uses an origin at the lower-left corner whereas X uses an origin at the upper-left corner. Canvas x coordinates can be used directly in Postscript without transformation.
Tk_CanvasPsBitmap generates Postscript to describe a region of a bitmap. The Postscript is generated in proper image data format for Postscript, i.e., as data between angle brackets, one bit per pixel. The Postscript is appended to interp->result and TCL_OK is returned unless an error occurs, in which case TCL_ERROR is returned and interp->result is overwritten with an error message.
Tk_CanvasPsColor generates Postscript to set the current color to correspond to its colorPtr argument, taking into account any color map specified in the postscript command. It appends the Postscript to interp->result and returns TCL_OK unless an error occurs, in which case TCL_ERROR is returned and interp->result is overwritten with an error message.
Tk_CanvasPsFont generates Postscript that sets the current font to match tkFont as closely as possible. Tk_CanvasPsFont takes into account any font map specified in the postscript command, and it does the best it can at mapping X fonts to Postscript fonts. It appends the Postscript to interp->result and returns TCL_OK unless an error occurs, in which case TCL_ERROR is returned and interp->result is overwritten with an error message.
Tk_CanvasPsPath generates Postscript to set the current path to the set of points given by coordPtr and numPoints. It appends the resulting Postscript to interp->result.
Tk_CanvasPsStipple generates Postscript that will fill the current path in stippled fashion. It uses bitmap as the stipple pattern and the current Postscript color; ones in the stipple bitmap are drawn in the current color, and zeroes are not drawn at all. The Postscript is appended to interp->result and TCL_OK is returned, unless an error occurs, in which case TCL_ERROR is returned and interp->result is overwritten with an error message.
KEYWORDS
bitmap, canvas, color, font, path, Postscript, stipple
More Linux Commands
manpages/perl56delta.1.html
perl56delta(1) - what's new for perl v5.6.0 - Linux man page
This document describes differences between the 5.005 release and the 5.6.0 release. Core Enhancements Interpreter cloning, threads, and concurrency Perl 5.6.0
manpages/ordchr.3am.html
ordchr(3am) convert characters to strings and vice versa....
The ordchr extension adds two functions named ord(). and chr(), as follows. ord() This function takes a string argument, and returns the numeric value of the fi
manpages/XtAppLock.3.html
XtAppLock(3) - lock and unlock application context (ManPage)
XtAppLock locks the application context including all its related displays and widgets. XtAppUnlock unlocks the application context. SEE ALSO X Toolkit Intrinsi
manpages/auparse_get_node.3.html
auparse_get_node(3) - get the event's machine node name.....
auparse_get_node gets the machines node name if it exists in the audit event from the current events timestamp data structure. Not all records have node names s
manpages/fold.1.html
fold(1) - wrap each input line to fit in specified width....
Wrap input lines in each FILE (standard input by default), writing to standard output. Mandatory arguments to long options are mandatory for short options too.
manpages/XrmStringToQuarkList.3.html
XrmStringToQuarkList(3) - manipulate resource quarks........
The XrmUniqueQuark function allocates a quark that is guaranteed not to represent any string that is known to the resource manager. These functions can be used
manpages/sasldblistusers2.8.html
sasldblistusers2(8) - list users in sasldb - Linux man page
sasldblistusers2 is used to list the users in the SASL password database (usually /etc/sasldb2). This will NOT list all the users in /etc/passwd, shadow, PAM, e
manpages/getc.3.html
getc(3) - input of characters and strings - Linux man page
fgetc() reads the next character from stream and returns it as an unsigned char cast to an int, or EOF on end of file or error. getc() is equivalent to fgetc()
manpages/XtAugmentTranslations.3.html
XtAugmentTranslations(3) - manage translation tables........
The XtParseTranslationTable function compiles the translation table into the opaque internal representation of type XtTranslations. Note that if an empty transl
manpages/CmdWrite.3.html
CmdWrite(3) - Writing C language extensions to Tcl. '.......
CmdWrite.3 - This document is intended to help the programmer who wishes to extend Tcl with C language routines. It should also be useful to someone wishing to
manpages/Module::Build::Platform::cygwin.3pm.html
Module::Build::Platform::cygwin(3pm) - Builder class for Cyg
This module provides some routines very specific to the cygwin platform. Please see the Module::Build for the general docs. AUTHOR Initial stub by Yitzchak Scot
manpages/gnutls_x509_privkey_init.3.html
gnutls_x509_privkey_init(3) - API function - Linux man page
gnutls_x509_privkey_init.3 - This function will initialize an private key structure. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
