logo       

Re: What's absolute minimum requires for AWT Image generation?: msg#00054

Subject: Re: What's absolute minimum requires for AWT Image generation?
Vincent Hardy wrote:
I have read through your email and, while I understand what you are trying to do, I am not sure what you are looking for exactly.

Err... yeah, just read through what I wrote... even I can't make sense of what I wrote!

You are saying that you cannot get the background color
right or that you have 'other oddities': could you tell us specifically
how you are trying to set the background color and what the oddities
are?

The simplest process is creating my own custom Image instance, with default background of all alpha. With this, I then use GraphicsUtil to create a Graphics2D instance, as recommended. From this, I then call GraphicsNode.paint() on a root instance of the document. No RenderingHints are set. Visual artifacts are the background colour is being reset (I'd like just to create a straight text string printed on an image) there's aliasing effects around the edge of the text. I think some of that is to do with the way I'm creating the image, but I'm not really sure yet.

In this simplest of tests I'm trying to implement an X3D Text node which is described as a "Flat two-sided item". We don't need to create polygons, so as the first step is just a simple text string on a transparent image to run as a texture. Admittedly it would be far easier to not use SVG altogether, but this was supposed to be the first step in a much larger process for the integration. It's the "get to know you" step.
--
Justin Couch                         http://www.vlc.com.au/~justin/
Java Architect & Bit Twiddler              http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe