API Reference
Complete API reference for the Perfectly Clear SDK, covering C and .NET interfaces.
The Perfectly Clear SDK provides two main functional interfaces for integrating image correction capabilities into your applications.
C API
The native C library defined in PerfectlyClearPro.h provides the core SDK functionality and is the primary interface used across all platforms including Linux, macOS, and Windows.
- Functions — Core functions for image correction, engine management, and analysis
- Enums — Enumerations for pixel formats, correction modes, and status codes
- Structs — Parameter structures for configuring corrections
- Error Codes — Status codes and decode macros for error handling
.NET API
The .NET wrapper defined in PerfectlyClearAdapter.cs provides a managed interface for Windows development using C#, with function names and calling patterns that closely mirror the C API.
- Overview — .NET API overview and quick start
- Classes — Main classes and their methods
- Error Handling — Patterns for handling errors in .NET
- Exceptions — Exception types thrown by the SDK
Data Structures
These core types are shared across the SDK for representing images, engine instances, and analysis results.
- Data Structures —
PFCIMAGE,PFCENGINE,PFCIMAGEPROFILE, and geometry types
Choosing an Interface
This table helps you select the appropriate interface based on your application requirements.
| Use Case | Recommended Interface |
|---|---|
| Linux or macOS server-side processing | C API |
| Cross-platform desktop applications | C API |
| Windows-only .NET applications | .NET API |
| Unity or other C# game engines on Windows | .NET API |
Both interfaces provide identical correction capabilities, and the .NET API is a wrapper around the C library so performance characteristics are equivalent.
PFC-SDK Version 10.7.2.1269 built from 4fa849d8101945eea725a08dd0dae5101f090fa0 on 11-10-2025.
Copyright © 2026 EyeQ Imaging Inc. All rights reserved.