Hi, Thorsten,
   My leader said the extension can not be accepted because of some reasons.
   As for a fast scaler, I think there must be two for-loops to extract the 
pixels from lines and columns. So from this, it is hard to be faster.
   After discussed with my colleagues, I think maybe it is well to do the 
scaling when decoding the data from the files. Becauses the OO is not a 
professional software of image processing, we do nearly not use the original 
pixels to do something. Even we should do, we also don't need the accurate 
result, the scaled bitmap is well to do so.
   There also is a problem using this way. If scaling is done when decoding 
files, it must be slower than before when a image is inserted because the 
scaling method occupies the most time as I tested before. But for Slide Show, 
obviously it is faster than before. 
   I checked the MS office to see how to deal with the image in it. After saved 
the document which a image is inserted in, I open the files saved as XML. I 
found that the image is saved as a scaled one, for example, the original one is 
1024 * 1024 and the saved is 234 * 234 which is depended on the rect where it 
is drawn. So when the MS document is sent to another one, the original image is 
also lost. 

   So I think scaling image when decoding is an acceptable way even it slows 
down the inserting speed. What do you think about it? 

  Another question is that GDI+ is used to "slide show" the presentation while 
GDI to the  presentation. As we all know, GDI+ is slower than GDI ( if 
DrawImage method is repleased by bitblt, the speed is more fast than now). So, 
why don't we also use GDI for "Slide show"?


2008-11-24 



sunyinan 



发件人: Thorsten Behrens 
发送时间: 2008-11-18  15:53:03 
收件人: sunyinan 
抄送: [email protected]; [EMAIL PROTECTED] 
主题: Re: [graphics-dev] [Impress] Information about improvingperformance 
On Tue, Nov 18, 2008 at 02:56:49PM +0800, sunyinan wrote:
>       I don't know how to resolve this issue proposed by my customer.  Can 
> you give me more suggestions?
> 
Hi,
well, I'd probably try & sell the customer the presentation
minimizer solution
(http://extensions.services.openoffice.org/project/PresentationMinimizer)
- failing that, you'd need to use a fast bitmap scaler (abundance of
code on the 'web, and also vcl/source/gdi/bmpfast.cxx)
Cheers,
-- Thorsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to