Hi all,

Having controll over placing-formating-sizing graphics and Images will be a big advantage for the many users who uses OO in a bid more professional way ! We are a Belgian based Editing-house who uses exclusifly OO to produce all the WEB-content and we planned also to let produce our editors all the Printed magazine-pages . I am working o a way to let users import graphics into a WriterDoc, with an preview who is giving Size and Resolution off te imported images and if necacery chaging the ImageFormat, size and resolution, depending on witch medium (web-print-copie) the page will be showed.

I found finaly a way to find out the "format", "size" and "resolution" of a Image using the "GraphicProvider.QuaryGraphic" (I will be happy to share this basic-code with the community) But during finding a way to place -resizing-reformating the images i stumbeled on a lot of "deadends"

Placing an embedded -grahpic into a WriterDoc (with the GUI or withe the API) gives different results depending if you placed it as a linked-graphic or and embedded-graphic. Embedded gives us the orinal dimensions (as difined in the Imagefile-header) gives us the correct "orginal-size" , the image had a "scale of "100%" and a correct "image-size " Linked gives us the a wrong "orginal size" (based on 96 DPI) a "scaling" with a percentage to optain a correct "image size" !! Is this behabior wanted or is it a bug ?

Before we place the image we can resize and reformat the graphic and define if we "embed" or "link" the grahic. I tried different ways to acomplish this task, it can be done, opening a hidden drawdoc and then place the grapic as a Shade, and finaly "exporting" the drawpage using the filteroptions to re-size and re-format the imagefile. To avoid the hidden drawdoc i tryed differend ways to acomplis the same task: Using the "GrapchicProvider.storeGraphic" and defining the MIMEtype was a prommesing option , I can do the re-formating, but i found noway to re-size the imagefile, there exist some filteroptions but found noware any documentation. Exporting the "Shape" instead of the DrawPage "with a filter" avoid the use of a hidden DrawDoc , works the "filtername" gives us the right format but: the filter ignorges the re-sizing options.
Exporting the Writer-Drawpage let crashes OO (no  pagesize i supose)

Any hints to resolve this deadends will be very welcome, and just maybe someone can explain why the filteroptions only works during the exort of a DrawDoc-drawpage and how a filter cen be used with GraphicProfider.StoreGrahpic


Thanks




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

Reply via email to