http://openoffice.org/bugzilla/show_bug.cgi?id=118314

        Issue Type: ENHANCEMENT
           Summary: Picture display in an imagecontrol slow
    Classification: Code
           Product: framework
           Version: OOo 3.2.1
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: ui
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]


Created an attachment (id=76706)
 --> (http://openoffice.org/bugzilla/attachment.cgi?id=76706)
picture to display in a dialog

In an OpenOffice dialog the execution of the following code is very slow to
display a .jpg picture (example attached) referenced by PathURL in the
imageControlModel oImageControlModel :

oImageControlModel.ImageURL = ConvertToURL(PathURL)
oImageControlModel.ScaleMode = 1


The execution of the following code is less slow :

oImageControlModel.Graphic = getGraphFromUrl(PathURL)
oImageControlModel.ScaleMode = 1

Function getGraphFromUrl(sFileUrl as String) as Variant
  Dim oPropsIN(0)    as new com.sun.star.beans.PropertyValue
  Dim oProvider     as Variant
  oPropsIN(0).Name  = "URL"
  oPropsIN(0).Value = sFileUrl
  oProvider = createUnoService("com.sun.star.graphic.GraphicProvider")
  getGraphFromUrl = oProvider.queryGraphic(oPropsIN())
End Function

-- 
Configure bugmail: http://openoffice.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification
from Bugzilla. Please log into the website and enter your comments.
---------------------------------------------------------------------
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help

Reply via email to