开发文档

iOS 快速开始

1. 集成 SDK

将 PixelFree.framework 添加到您的项目中。

// 在 Podfile 中添加
pod 'PixelFree'

2. 初始化

#import <PixelFree/PixelFree.h>

PixelFree *pixelFree = [[PixelFree alloc] init];
[pixelFree create];

3. 使用示例

// 大眼
float eyeValue = 0.5f;
[pixelFree pixelFreeSetBeautyFiterParam:PFBeautyFiterTypeFace_EyeStrength 
                                   value:&eyeValue];

// 美牙
float whitenTeethValue = 0.5f;
[pixelFree pixelFreeSetBeautyFiterParam:PFBeautyFilterWhitenTeeth 
                                   value:&whitenTeethValue];
查看完整文档 →

Android 快速开始

1. 集成 SDK

将 PixelFree AAR 包添加到您的项目中。

// 在 build.gradle 中添加
dependencies {
    implementation files('libs/PixelFree.aar')
}

2. 初始化

import com.pixelfree.PixelFree;

PixelFree pixelFree = new PixelFree();
pixelFree.create();

3. 使用示例

// 单纹理模式处理
public int onTextureCustomProcess(int textureId, int width, int height) {
    PFIamgeInput pxInput = new PFIamgeInput();
    if (pixelFree.isCreate()) {
        pixelFree.processWithBuffer(pxInput);
    } else {
        pixelFree.create();
    }
    return textureId;
}
查看完整文档 →

Flutter 快速开始

1. 添加依赖

dependencies:
  pixelfree:
    git:
      url: https://github.com/your-repo/pixelfree-flutter.git

2. 初始化

import 'package:pixelfree/pixelfree.dart';

final pixelFree = PixelFree();
await pixelFree.create();
查看完整文档 →

API 参考

iOS API

完整的 API 文档请参考:

iOS API 文档 →

Android API

完整的 API 文档请参考:

Android API 文档 →

Flutter API

完整的 API 文档请参考:

Flutter API 文档 →

更新日志