[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] 3/2 How to render onto an Image using a Map
|
Wow I just read my email it hardly makes sense... I think I'm tired
right now... Please forgive me and feel free to ask questions if I'm
not being clear (Its pretty
Ok I'm a little confused about the ie to jpeg comment.
How are you using my plugin?
Does it work for some formats but not PDF? For example does PNG work
but not PDF?
I may be mistaken but I think the background is always transparent,
mind you how the PDF export handles that... I'm not sure. I didn't
think to consult the background color on the Map blackboard when
exporting.... I definitely need to do that. I've made a note of
that. I will try to do that tonight. I'm going to make a release
tomorrow so you can try that out.
Jesse
On 31-Oct-07, at 6:43 AM, Vince Darley wrote:
The PDF export (i.e. to jpeg) gets the colours all wrong. The
background seems to be a weird pink colour. If I use
BufferedImage.TYPE_INT_RGB then the colours are mostly right, except
the background is black instead of white. My attempts to use
map
.getBlackboard
().put(ProjectBlackboardConstants.MAP__BACKGROUND_COLOR, Color.WHITE);
have had no effect on that.
regards,
Vince.
At 17:17 24/10/2007, Jody Garnett wrote:
Vince Darley wrote:
3) I have a map with a bunch of layers shown. I'd like to get a
renderer (using RenderManager?) which I can use to render an
arbitrary bounding box of those layers (not necessarily related to
the bounding box of the current view port of the map) to a
BufferedImage of arbitrary size which I can then use for other
purposes. Can you fill me in on the basic way to achieve this?
Have a look at the PNG export; or PDF export community modules in
Jesse's section of svn. Also the map print functionality does this
sort of work in order to render the Map onto an image for the "Box"
you can layout on the page. Map is "just" a data structure so you
will find some of these examples going about the rendering process
with different assumptions (say speed vs. quality).
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel