On Apr 15, 2009, at 7:26 AM, eric b wrote:
Since I see there is a .png loader in OOo, I'm searching how to
replace the .bmp splashscreen with a .png one. The idea is to use
transparency with the splashscreen.
For that, I modified splash.cxx in desktop/source/splash, with the
idea to use BitmapEx class (is it correct?), but I'm a bit stuck
about what exact stream type use .. and so on, and I need more
information.
More precisely, I need tracks on what has to be done (the
mechanism), what class use exactly. e.g.,
Create a SvFileStream/SvMemoryStream/ etc. (see tools/stream.hxx)
Create a PNGReader for that stream (see vcl/pngread.hxx)
Do a Read() on that PNGReader to get the BitmapEx.
I see implimagtree.cxx does use a stream, but not exactly the same
as the one used with the bmp loader. Why, and what do instead
for .png ? )
I guess the ImplImageTree has different requirements because it reads
an image from inside a zip-container.
Last, some info about the fast path who could be used would be great
too. And if there is work in progress, I'd be glad to help, because
looks like thre is something extremely important for OOo to do (IMHO).
I'm not sure what you mean with fast path? The PNG reader is already
quite fast. It can be faster if you just need to read just a thumbnail
of a PNG,. Then you could give the PNGReader a preview-size hint; if
the PNG was stored as "interlaced" this becomes even faster.
---
Herbert Duerr
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]