• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Does anyone have code for generating a CGImageRef or CGContextRef from a PF_EffectWorld?

Participant ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

Hey Folks,

 

I'm writing a Mac-based AE plugin, and I need to create a Mac-compatible image from a PF_EffectWorld. Has anyone written code to do that? I have it working with 8-bits per channel images, but I can't seem to get 16-bit working. I basically need to create a CGImageRef or CGContextRef from a PF_EffectWorld that is either 8-bits or 16-bits per channel.

 

James

TOPICS
SDK

Views

143

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

LATEST

isn't a CGImageRef always 8bits?

in any case, you can alocate ram for a new buffer, convert your 16bpc image into an 8bpc image, and the convert that buffer into a CGImageRef.

am i missing something here?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines