Copy link to clipboard
Copied
I tried 2 methods, none of them worked.
1:
2:
The second method is a definitely fail – that won’t do any color conversion. There is an API for color converting a single PDEElement, though can’t recall it offhand.
On #1
- the BIG issue is that you aren’t setting a value for the mSize member in the ActionRec
- The second issue is that you aren’t clearing the memory and/or setting all unused fields to 0. Memory is a funny thing ☺.
- Finally, not sure why you are using -1’s instead of the proper kColorConvObj_AnyObject, etc. Use the constants,
...Copy link to clipboard
Copied
The second method is a definitely fail – that won’t do any color conversion. There is an API for color converting a single PDEElement, though can’t recall it offhand.
On #1
- the BIG issue is that you aren’t setting a value for the mSize member in the ActionRec
- The second issue is that you aren’t clearing the memory and/or setting all unused fields to 0. Memory is a funny thing ☺.
- Finally, not sure why you are using -1’s instead of the proper kColorConvObj_AnyObject, etc. Use the constants, they are there for a reason
Copy link to clipboard
Copied
I didn't find mSize member in the PDColorConvertActionRec
I've changed like this, but still not:
Copy link to clipboard
Copied
Ah, I see now.
I am looking at the Ex versions of these structures and APIs…