Sunday, March 28, 2010

How to get the first address of image...

Hi everybody,

May you help me to solve following problems?

1. In function void HiddenPlugin::Write(void) in Hidden plug-in in line:

bigError = sPSChannelProcs-%26gt;ReadPixelsFromLevel(readChannelDesc-%26gt;port , 0, %26amp;currentRect, %26amp;pixelMemoryDesc);

a. I base on pixelMemoryDesc parameter, i get the first of image address of each channel. This has problems:

- With image 8 bits, I get address ok. And i shows it by another program is wonderfull

- With iamge 16 bits, I get address ok. But i change 16bits to 8bits than show, it has difference from source. I think this address is change when Photoshop shows. How i can get orginal address of image 16 bit.

2. For that problem, can give me example to get orginal address of image 16 bit.

phatls@fsoft.com.vn

No comments:

Post a Comment