明经通道 外部定义命令  
render
 

用几何图形、光源和表面修饰信息创建三维线框模型的真实感着色图像(外部定义:render ARX 应用程序)

(c:render [filename|point1 point2]) 

参数

filename

字符串,指定渲染文件的名称。

如果 filename 参数存在,则渲染结果被写入该文件。如果没有配置渲染到文件的驱动程序,则 filename 参数被忽略。当前配置必须指定渲染到文件。

point1

实数表,指定修剪窗口的第一个点。

point1

实数表,指定修剪窗口的第二个点。

渲染由当前设置控制,这些设置用 c:rpref 函数设置。例如:

(c:rpref "Toggle" "CropWindow" "On")

注意 如果当前渲染系统配置指定 Query for Selection 并且打开了 PICKFIRST 系统变量,并且在调用 c:render 时存在当前选择集,则不再显示其他提示,而直接渲染该选择集中的对象。

设置“渲染到文件”选项

设置渲染到文件。

(c:rfileopt fileformat xres yres aratio colormode <mode-specific options>)

参数

c:rfileopt 参数的说明如下表:

RFILEOPT 参数

参数

数据类型

说明

fileformat

STR

所需格式的标识符:

TGA—- Targa 格式

PCX — Z-Soft 位图格式

BMP—- Microsoft Windows 格式

PS—- PostScrip

tTIFF — 标记图像文件格式

xres

INT

输出文件的 X 轴分辨率(有效值区间为从 1 到 4096)

yres

INT

输出文件的 Y 轴分辨率(有效值区间为从 1 到 4096)

aratio

REAL

像素宽高比

colormode

STR

每种文件格式接受下列值的子集:

MONO—单色

G8—256 色灰度

C8—256 色

C16—16-位色

C24—24-位色

C32—24-位色加 8 位优化

TGA

指定 Targa 格式。

(c:rfileopt "TGA" xres yres aratio colormode
interlace compress bottomup)

参数

TGA 格式参数

参数

数据类型

说明

colormode

STR

颜色模式:G8、C8、C24 或 C32

interlace

INT

隔行模式:

1 — 不隔行

2 — 2:1 隔行

4 —- 4:1 隔行

compress

STR

压缩开关(缺省值=“COMP”):

COMP — 压缩

nil — 不压缩

bottomup

STR

上下模式(缺省值 =“UP”):

UP — 由下而上

nil — 由上而下

示例

(C:RFILEOPT "TGA" 640 480 1.0 "C32" 1 "COMP" "UP")

PCX

指定 Z-Soft 位图格式。

(c:rfileopt "PCX" xresyresaratiocolormode)

参数

PCX format arguments

参数

数据类型

说明

colormode

STR

颜色模式:MONO、 G8 或 C8

示例

(C:RFILEOPT "PCX" 640 480 1.0 "G8")

BMP

指定 Microsoft® Windows® 位图格式。

(c:rfileopt "BMP" xres yres aratio colormode)

参数

BMP format arguments

参数

数据类型

说明

colormode

STR

颜色模式:MONO、 G8 或 C8

示例

(C:RFILEOPT "BMP" 640 480 1.0 "C8")

PS

指定 PostScript 格式。

(c:rfileopt "PS" xres yres aratio colormode portrait imagesize [size])

参数

PS format arguments

参数

数据类型

说明

colormode

STR

颜色模式:MONO、 G8、C8 或 C24

portrait

STR

横向或纵向(缺省值 =“L”): 

P — 纵向

L — 横向

imagesize

STR

类型(缺省值 =“A”):

A — 自动

I — 图像

C — 自定义

size

INT

图像尺寸

示例

(C:RFILEOPT "PS" 640 480 1.0 "C24" "P" "C" 640)

TIFF

指定标记图像文件格式。

(c:rfileopt "TIFF" xres yres aratio colormode)

参数

TIFF format arguments

参数

数据类型

说明

colormode

STR

颜色模式:MONO、G8、C8、C24 或 C32

示例

(C:RFILEOPT "TIFF" 640 480 1.0 "C24")

明经通道 版权所有 未经许可 不得传播

 评论