Hi all,
I've setup the samples, converting them back to compile in VS6 etc, and all that works ok. However, I'm having difficulty getting my head round what I want to do, so...
1. I want to draw a preview of the current image in a rectangle on my dialog box. How? I can see a DisplayPixelsProc() callback but it requires a PSPixelMap parameter - where do I get one of those from in an automation plugin?
2. How do I retrieve the pixel dimensions of the current document? The following gives an unhelpful answer
double width;
DescriptorUnitID unit = unitPixels;
error = PIUGetInfo(classDocument,
keyWidth,
&width,
&unit);
It seems confused by the current PPI setting. If I query a document which is 300 pix wide and PPI=72 then the answer is correct. But if the document happens to be set at 360 ppi then the answer is scaled by 72/360 to 60 (at least that's what I deduce is happening).
3. Generally I haven't quite got my head around the idea of whether I'm supposed to think in terms of callbacks, suites or COM automation.
I'd be very appreciative if anyone can point me in the right directions.
Thanks
Miles