New Forum | Previous | Next | (P-PDF) Developers
Topic: So close yet so far: Images
Conf: (P-PDF) Developers, Msg: 142082
Date: 11/2/2005 01:07 AM
No I'm not posting without actuially trying, I've gotten this far:
In the image above, APDFL reports it as an indexed RGB image. So, first things first, I wrote the c++ code to extract the palette information ( PDEColorSpaceGetCTable ), then I extracted the actuial image data (after making sure it wasn't encrypted.. which it should never be in my case anyway). Then I did research and learned the BMP specifications. Now I have the function writing out the pallete, and the image data, but as you can see, there is something screwy with the offsets. I have pasted my code just to show you what I have done. I'm not entirely sure this forum can help me here but I'm giving it a shot..