⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 canvpsy.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) CanvPsY.3 1.6 96/03/26 18:03:26'\" .so man.macros.TH Tk_CanvasPsY 3 4.0 Tk "Tk Library Procedures".BS.SH NAMETk_CanvasPsY, Tk_CanvasPsBitmap, Tk_CanvasPsColor, Tk_CanvasPsFont, Tk_CanvasPsPath, Tk_CanvasPsStipple \- utility procedures for generating Postscript for canvases.SH SYNOPSIS.nf\fB#include <tk.h>\fR.spdouble\fBTk_CanvasPsY\fR(\fIcanvas, canvasY\fR).spint\fBTk_CanvasPsBitmap\fR(\fIinterp, canvas, bitmap, x, y, width, height\fR).spint\fBTk_CanvasPsColor\fR(\fIinterp, canvas, colorPtr\fR).spint\fBTk_CanvasPsFont\fR(\fIinterp, canvas, fontStructPtr\fR).sp\fBTk_CanvasPsPath\fR(\fIinterp, canvas, coordPtr, numPoints\fR).spint\fBTk_CanvasPsStipple\fR(\fIinterp, canvas, bitmap\fR).SH ARGUMENTS.AS "unsigned int" *fontStructPtr.AP Tk_Canvas canvas inA token that identifies a canvas widget for which Postscript isbeing generated..AP double canvasY inY-coordinate in the space of the canvas..AP Tcl_Interp *interp in/outA Tcl interpreter;  Postscript is appended to its result, or theresult may be replaced with an error message..AP Pixmap bitmap inBitmap to use for generating Postscript..AP int x inX-coordinate within \fIbitmap\fR of left edge of region to output..AP int y inY-coordinate within \fIbitmap\fR of top edge of region to output..AP "int" width inWidth of region of bitmap to output, in pixels..AP "int" height inHeight of region of bitmap to output, in pixels..AP XColor *colorPtr inInformation about color value to set in Postscript..AP XFontStruct *fontStructPtr inFont for which Postscript is to be generated..AP double *coordPtr inPointer to an array of coordinates for one or morepoints specified in canvas coordinates.The order of values in \fIcoordPtr\fR is x1, y1, x2, y2, x3, y3,and so on..AP int numPoints inNumber of points at \fIcoordPtr\fR..BE.SH DESCRIPTION.PPThese procedures are called by canvas type managers to carry outcommon functions related to generating Postscript.Most of the procedures take a \fIcanvas\fR argument, whichrefers to a canvas widget for which Postscript is beinggenerated..PP\fBTk_CanvasY\fR takes as argument a y-coordinate in the space ofa canvas and returns the value that should be used for that pointin the Postscript currently being generated for \fIcanvas\fR.Y coordinates require transformation because Postscript uses anorigin at the lower-left corner whereas X uses an origin at theupper-left corner.Canvas x coordinates can be used directly in Postscript withouttransformation..PP\fBTk_CanvasPsBitmap\fR generates Postscript to describe a regionof 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 \fIinterp->result\fR and TCL_OK is returnedunless an error occurs, in which case TCL_ERROR is returned and\fIinterp->result\fR is overwritten with an error message..PP\fBTk_CanvasPsColor\fR generates Postscript to set the current colorto correspond to its \fIcolorPtr\fR argument, taking into account anycolor map specified in the \fBpostscript\fR command.It appends the Postscript to \fIinterp->result\fR and returnsTCL_OK unless an error occurs, in which case TCL_ERROR is returned and\fIinterp->result\fR is overwritten with an error message..PP\fBTk_CanvasPsFont\fR generates Postscript that sets the current fontto match \fIfontStructPtr\fR as closely as possible.\fBTk_CanvasPsFont\fR takes into account any font map specifiedin the \fBpostscript\fR command, and it doesthe best it can at mapping X fonts to Postscript fonts.It appends the Postscript to \fIinterp->result\fR and returns TCL_OKunless an error occurs, in which case TCL_ERROR is returned and\fIinterp->result\fR is overwritten with an error message..PP\fBTk_CanvasPsPath\fR generates Postscript to set the current pathto the set of points given by \fIcoordPtr\fR and \fInumPoints\fR.It appends the resulting Postscript to \fIinterp->result\fR..PP\fBTk_CanvasPsStipple\fR generates Postscript that will fill thecurrent path in stippled fashion.It uses \fIbitmap\fR as the stipple pattern and the current Postscriptcolor;  ones in the stipple bitmap are drawn in the current color, andzeroes are not drawn at all.The Postscript is appended to \fIinterp->result\fR and TCL_OK isreturned, unless an error occurs, in which case TCL_ERROR is returned and\fIinterp->result\fR is overwritten with an error message..SH KEYWORDSbitmap, canvas, color, font, path, Postscript, stipple

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -