ColorVision.FileIO 1.5.1.2

dotnet add package ColorVision.FileIO --version 1.5.1.2
                    
NuGet\Install-Package ColorVision.FileIO -Version 1.5.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ColorVision.FileIO" Version="1.5.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColorVision.FileIO" Version="1.5.1.2" />
                    
Directory.Packages.props
<PackageReference Include="ColorVision.FileIO" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ColorVision.FileIO --version 1.5.1.2
                    
#r "nuget: ColorVision.FileIO, 1.5.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ColorVision.FileIO@1.5.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ColorVision.FileIO&version=1.5.1.2
                    
Install as a Cake Addin
#tool nuget:?package=ColorVision.FileIO&version=1.5.1.2
                    
Install as a Cake Tool

ColorVision.FileIO

ColorVision 专有二进制图像格式的纯托管读写库。目标框架为 .NET Framework 4.6.1、.NET 6、.NET 8 和 .NET 10,平台 AnyCPU;以本目录 ColorVision.FileIO.csproj 为准。

源码入口

  • CVFileUtil.cs:CVCIE 魔数、版本 header、payload、通道读取和写回。
  • CVCIEFile.cs:尺寸、曝光、源文件名和 Data 载体,以及 CVType。

本库没有 CVRawFile、FileValidator、通用 JSON/YAML 处理器、压缩/批量框架或异步 LoadAsync / SaveAsync API。标准图片解码和显示转换由消费方承担。

先选对读取语义

  • CVFileUtil.Read 读取当前文件的内嵌 payload。
  • ReadCVCIE 可能优先读取 SrcFileName 指向的关联源文件,不保证返回内嵌 XYZ。
  • ReadCIEFileChannel 同步读取一个零基通道平面,不跟随关联源文件;Data 只有一个通道,但 Channels/Exp 保留原 header。在检查点观察到取消时抛出 OperationCanceledException;header 失败可能先返回 false,详见完整契约。
  • CVCIEFile.Dispose 清除自身 Data/Exp 引用,不关闭消费方对象或强制回收其持有的数组。

WriteCIEFile 返回成功不等于格式验证成功:路径重载直接覆盖目标,没有原子替换/回滚;当前 v3 writer 未写 reader 所需的 NDPort。不要将单通道读取结果当作完整多通道文件直接写回。

完整布局、失败语义、消费方与测试只维护在仓库的CV 文件契约中。该链接用于源码仓库;从 NuGet 单独取得此包时,请查对应源码版本的主题和测试,不将最新分支当作已安装版本保证。

本地构建

从仓库根目录执行;仅构建本地库,不发布 NuGet:

dotnet build .\Engine\ColorVision.FileIO\ColorVision.FileIO.csproj -p:Platform=AnyCPU
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.1

    • No dependencies.
  • net10.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.1.2 60 10/7/2026
1.5.1.1 161 2/16/2026
1.3.6.1 234 12/23/2025
1.3.5.4 265 12/15/2025
1.3.5.3 436 11/24/2025
1.3.5.2 160 10/11/2025
1.3.5.1 317 8/24/2025
1.3.4.1 219 6/29/2025