From: Adam R. M. <ama...@ma...> - 2007-06-19 14:21:18
|
On Jun 19, 2007, at 06:55, Asko Soukka wrote: > Christiaan Hofman kirjoitti 19.6.2007 kello 13:01: >> >> So did you have a working viewer then, or is this just a mockup? I >> guess this was not done on a Mac? > > We did have "a working viewer" (though imported PDFs were converted > into images and shown only as such), but I doubt that any member of > the research group has anymore a compileable and running copy of it. That's pretty cool. You could do something similar on the Mac with relatively little code (I think). You would use NSPDFImageRep to read the PDF into something like Apple's sample PDFImageView class. From there, you'd have to mess with mouseDown: to add a Core Image filter region to your image, then have it draw the filtered image atop the original image. Save a PDF page to TIFF or something, and then load it into Core Image Fun House to see what's possible (maybe the bump distortion?). Not as cool as applying the drawing transforms to the actual PDF drawing commands, but a lot faster. On a slightly related note, I've thought of adding a Core Image page curl transition effect to Skim, where you'd grab a page corner and move it (and then it would switch to the next page once you turned past a certain point). I think that could be done in an overlying transparent window, but I don't have time to mess with it. -- Adam |