gr_setpx.gml

来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 35 行

GML
35
字号
.gfuncw setpixel
.if '&lang' eq 'C' .do begin
short _FAR _setpixel( short x, short y );

short _FAR _setpixel_w( double x, double y );
.do end
.el .do begin
integer*2 function _setpixel( x, y )
integer*2 x, y

integer*2 function _setpixel_w( x, y )
double precision x, y
.do end
.gfuncend
.desc begin
The &func &routine sets the pixel value of the point
.coord x y
using the current plotting action with the current color.
The &func &routine uses the view coordinate system.
The &func2 &routine uses the window coordinate system.
.pp
.im gr_pixvl
.desc end
.return begin
The &func &routines return the previous value of the indicated pixel
if the pixel value can be set; otherwise, (-1) is returned.
.return end
.see begin
.seelist &function. _getpixel _setcolor _setplotaction
.see end
.grexam begin eg_getpx.&langsuff
.grexam end
.class &grfun
.system

⌨️ 快捷键说明

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