Skip to main content
Inspiring
May 26, 2022
Question

PF_GET_PIXEL_DATA8 cannot get x y posision pixel?

  • May 26, 2022
  • 1 reply
  • 212 views

I'm trying to get output's x y position pixel by using PF_GET_PIXEL_DATA8 in function used in iterate.

 

The second parameter is a hint? I don't understand much.

This topic has been closed for replies.

1 reply

Community Expert
May 26, 2022

honest to god, i don't understand it either. it seems to fetch the base address of an effect world's image buffer.

you can achieve the same doing (assuming you know the4 world type, and cast the correct pixel type):
PF_Pixel *p = (PF_Pixel*)effectWorld->data;