I try to use the example, i must set the pixelwidth and the pixelheight to reduce the resolution??


sos ha scritto:
At 16:50 30/05/05, you wrote:
Hi to all,
i want to insert an image in a Writer Document with the Java Api.
After this, how can i reduce the resolution (if i reduce the size of the image, the dimension of the document remain the same..)??
Thanks to all

I found a solution for a similar "export" problem in the OO snipet base
http://codesnippets.services.openoffice.org/Office/Office.GraphicExport.snip
so you can using the exportfilters to write the grapchic to some temporay file at the wanted resolution and then import it back to the document.
Wondering if we can write to a "virtual" file on the clipboard ??

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dott. Cristian Fonti
mailto: [EMAIL PROTECTED]
Centro Elaborazione Dati (CED) - Resp. Web Area
SCM Group S.p.a. http://www.scmgroup.com
via Emilia, 77 - 47900 Rimini (RN), Italy
Tel.: +39 0541 700163 Interno: 2163
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 


Reply via email to