|
AnyCAD Rapid API 2026
Help you to create a better world!
|
文件图像类 更多...
Public 成员函数 | |
| FileImage (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| string | GetFileName () |
| void | SetFileName (string val) |
| virtual bool | Load () |
| 加载图像数据 | |
| virtual void | Unload () |
| 卸载图像数据 | |
Public 成员函数 继承自 AnyCAD.Foundation.Image | |
| Image (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| uint | GetWidth () |
| void | SetWidth (uint val) |
| uint | GetHeight () |
| void | SetHeight (uint val) |
| uint | GetChannel () |
| void | SetChannel (uint val) |
| EnumTextureInternalFormat | GetInternalFormat () |
| void | SetInternalFormat (EnumTextureInternalFormat val) |
| EnumTextureFormat | GetFormat () |
| void | SetFormat (EnumTextureFormat val) |
| EnumDataType | GetDataType () |
| void | SetDataType (EnumDataType val) |
静态 Public 成员函数 | |
| static FileImage | Create (string fileName) |
| 创建文件图像对象 | |
文件图像类
从文件加载的图像,支持延迟加载和卸载。 继承自 Image,添加文件名属性。
|
static |
创建文件图像对象
| fileName | 图像文件路径 |
|
virtual |
加载图像数据
纯虚函数,子类实现具体的文件读取和解析逻辑
|
virtual |
卸载图像数据
释放已加载的图像数据,节省内存