Hi Nebojsa,

Nebojša Miletić <[EMAIL PROTECTED]> wrote on 11/15/2006 11:30:01 AM:

> I'm displaying a lots of same elements in my application (e.g. I have 
200
> same images or 200 text elements with same value). Each element consumes
> same amount of memory. 
> 
> Is there a way to create only one template element but render and show 
many
> of these elements using that template element as a pattern (or something
> similar) in order to reduce memory consumption? 

   Hmm, well in the 'hack' arena you might look at using markers.
Define the repeated content as a marker and then set that marker on
a path that consists of nothing but moveto commands 
(d="M 10,10 M20,30 ...").

   Using markers can be a bit tricky but there are some examples in
the samples/test/spec/painting directory.

   You could also potentially write a Batik extension to do this as well.

> I tried using the 'use' element, but memory occupation increased twice. 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to