Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

Explorer ,
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

70

Likes

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
Adobe Community Professional ,
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?

Likes

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