Issue 69028 - Filterdata for GraphicProfider
Summary: Filterdata for GraphicProfider
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-28 15:42 UTC by sos
Modified: 2017-05-20 11:28 UTC (History)
1 user (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description sos 2006-08-28 15:42:36 UTC
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" ?
Comment 1 ooo 2006-08-28 16:14:24 UTC
accepted
Comment 2 ooo 2006-08-28 16:18:03 UTC
set target to 2.x
Comment 3 Martin Hollmichel 2007-11-09 17:28:08 UTC
set target from 2.x to 3.x according to
http://wiki.services.openoffice.org/wiki/Target_3x
Comment 4 Marcus 2017-05-20 11:28:03 UTC
Reset assigne to the default "issues@openoffice.apache.org".