AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Foundation.ScreenShot类 参考

屏幕快照对象. 更多...

类 AnyCAD.Foundation.ScreenShot 继承关系图:

Public 成员函数

 ScreenShot (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
 ScreenShot (MemoryImage img, Camera camera)
 
MemoryImage GetImage ()
 
Camera GetCamera ()
 
Vector3 ReadColor (uint x, uint y)
 
Vector3 ReadColor (Vector3 worldPt)
 
void ToBGR ()
 转成BGR格式。
 
bool SaveFile (string fileName)
 保存文件
 
Uint8List CreateMemoryImage ()
 转成内存字节流
 
int SampleGBR (Vector3 worldPt, int offset)
 Get the RGB color
 
bool SaveFile (string fileName, uint width, uint height)
 根据指定的大小来保存文件
 

详细描述

屏幕快照对象.

Group: Rendering

成员函数说明

◆ CreateMemoryImage()

Uint8List AnyCAD.Foundation.ScreenShot.CreateMemoryImage ( )

转成内存字节流

返回

◆ SampleGBR()

int AnyCAD.Foundation.ScreenShot.SampleGBR ( Vector3 worldPt,
int offset )

Get the RGB color

参数
worldPtthe position
offsetthe offset
返回
0: R, 1:B, 2:G

◆ SaveFile() [1/2]

bool AnyCAD.Foundation.ScreenShot.SaveFile ( string fileName)

保存文件

参数
fileName文件名称,utf8编码
返回
是否成功

◆ SaveFile() [2/2]

bool AnyCAD.Foundation.ScreenShot.SaveFile ( string fileName,
uint width,
uint height )

根据指定的大小来保存文件

参数
fileName文件名,utf8编码
width宽度
height高度
返回
是否成功