Java Cocoa question (NSImage overlays)
Java Cocoa question (NSImage overlays)
- Subject: Java Cocoa question (NSImage overlays)
- From: "Ivan E. Markovic" <email@hidden>
- Date: Wed, 30 Jun 2004 20:19:53 +0100
This is a Java question so I hope that someone will be able to help.
I have spent hours searching for a solution but with no luck so I am
hoping someone on this list will be able to help.
I have an application that grabs a page from a PDF and outputs it as
a GIF file; but now what I want to do is to 'draw' ontop of that
image before writing it out (like an overlay on top of the original
PDF page).
I create an NSImage object by adding an NSPDFImageRep but then I want
to draw say a rectangle onto that NSImage possibly with NSBezierPath.
I even tried to add multiple representations to the NSImage object using:
addRepresentations()
but that did not create the effect I was hoping for (of merged
layered content).
I thought that I could create some kind of NSView and then add
objects to it and then render that into an NSImage and then combine
the two images (the pdf and the drawing) but that plainly doesn't
work.
Can anyone help please? I have been going round and round in circles for days.
Thank you.
I v a n ...
--
Ivan Markovic
SculptLight
http://www.sculptlight.com
Mobile: (+353) 87 2939256
Office: (+353) 1 2982205
Fax: (+353) 1 2966848
2 Airfield Drive,
Churchtown,
Dublin 14,
Ireland.
VAT: IE 9072482G
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.