To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=69028 Issue #|69028 Summary|Filterdata for GraphicProfider Component|api Version|OOo 2.0.3 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|FEATURE Priority|P3 Subcomponent|code Assigned to|ka Reported by|sos
------- Additional comments from [EMAIL PROTECTED] Mon Aug 28 07:42:36 -0700 2006 ------- For importing en exporting Images from a writerdoc with changing the Fileformat and the Pixelsize we can can use 2 methods: Using a hidden DrwawDoc and t:he ".drawing.GraphicExportFilter" or using "Provider.storeGraphic" . Both methods are using a filter with some "filterdata" 1: drawing.GraphicExportFilter xExporter = createUnoService( "com.sun.star.drawing.GraphicExportFilter" ) xExporter.SetSourceDocument( xObject ) Dim aArgs (2) as new com.sun.star.beans.PropertyValue Dim aURL as new com.sun.star.util.URL sFileUrl = ConvertToURL(sFileUrl) aArgs(0).Name = "FilterName" aArgs(0).Value = "jpg" aArgs(1).Name = "URL" aArgs(1).Value = sFileUrl aArgs(2).Name = "FilterData" >> "PixelWidth" and "PixelHeight" aArgs(2).Value = aFilterData ' xExporter.filter( aArgs() ) Here we end up with a JPG imagefile with the correct Pixelsizes 2: "Provider.storeGraphic" . Dim oPropsUIT(2)as new com.sun.star.beans.PropertyValue oPropsUIT(0).Name = "URL" oPropsUIT(0).Value = sURLuit ' oPropsUIT(1).Name = "SizePixel" ' oPropsUIT(1).Value = asize oPropsUIT(1).Name = "MimeType" oPropsUIT(1).Value = "image/jpeg" >> loads the "jpg" filter oPropsUIT(2).Name = "FilterData" >> "PixelWidth" and "PixelHeight" oPropsUIT(2).Value = aFilterData() oProvider.storeGraphic( graph , oPropsUIT()) Here we end up with a JPG imagefile but with NO correct pixelsize (who is still the orginal size of the imported image) is supose the "filterdata" is not transmited to the filter ??? SO: - Is the "Provider.storeGraphic" not using the same Filters as the "drawing.GraphicExportFilter" ? - Is ther a bug when transfering the filterdata with "Provider.storeGraphic" ? --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]