eric b wrote:
Hi Herbert, all,


Le 15 avr. 09 à 09:07, Herbert Duerr a écrit :

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.

Thorsten Behrens (thanks to him ! ) helped me to understand how to play with Streams, and now I got some working code (no more crashes, havePng() returns true, and I can verify the Stream is open and functionnal), but I need your opinion.

At the beginning, I modified the splash.hxx and the splash.cxx accordingly to replace all .bmp with .png equivalents. As summary, the current buffer seems to be ok. , but I continue to see nothing, and this is certainly my fault.

Probably the problem is caused by  SetBackgroundBitmap( _aIntroBmp );

SetBackgroundBitmap does not do anything on the mac (see vcl/aqua/source/window/salframe.cxx AquaSalFrame::SetBackgroundBitmap).

I replaced in SplashScreen::updateStatus() with :

        Point xtopleft(212,216);
        OutputDevice::DrawBitmapEx (xtopleft, _aIntroPng);

try painting at (0,0), vcl coordinates are left and topdown.

However drawing a BitmapEx will not make the intro window transparent, it will just draw the png transparently onto the window's background.

Kind regards, pl

--
Sanity is just a bad excuse for a lack of imagination.
     -- Author unknown

Registered Office: Sun Microsystems GmbH, Sonnenallee 1, D-85551
Kirchheim-Heimstetten
Commercial register of the Local Court of Munich: HRB 161028
Managing Directors: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Chairman of the Supervisory Board: Martin Haering

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to