So, if i want to reduce the dimension (the weight..) of the image in the final document, which properties i must set?? (Setting the height and the width i don't obtain nothing..)


sos ha scritto:
At 15:52 31/05/05, you wrote:
I try to use the example, i must set the pixelwidth and the pixelheight to reduce the resolution??

I supose that "resolution" is some notation in the header of a graphic file, needed bij some applications , screens and printers, to now how "big" the graphic must be presented. and the resolution has no influence on the sise of the graphic, only the number of pixels.



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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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