Page 1 of 1

HOW APPEAR SMALL PICTURE INSIDE THE BOX IN THIS GAME?

Posted: Wed Jan 27, 2016 6:33 pm
by _CjCalc_
How making appear in the game, a picture that contains an image of a capture of the game??


For example in the original game, in the savegames, a small box appears with an image of a capture inside the box.

In the code of python, file savegame.py appear this line:

SplashImage() etc..... but...unfortunatelly not working :-(

Sorry for my bad english, I'm spanish :-(

Very thanks!!

Re: HOW APPEAR SMALL PICTURE INSIDE THE BOX IN THIS GAME?

Posted: Tue Feb 02, 2016 10:48 pm
by cieply
quote from Lib/SaveGame.py

Code: Select all

Bladex.SaveScreenShot('name-of-picture.bmp', 160, 120)
this will save screenshot into bitmap; 160, 120 is resulting resolution
in D3D will be of grey colours in OpenGL in normal colours (RGB->BGR swapped though) - don't know why in D3D its not in normal colours

if you want to show it SplashImage.py module will not help you - it sets background image
to show it, you would like to use Raster module 'DrawBitmap', 'DrawImage' methods but I don't know how to use them, I just found them by using

Code: Select all

dir(Raster)
they are used in Lib/Credits.py but I don't get them so you must try yourself

I tried this:

Code: Select all

Bladex.SaveScreenShot('shot5-ogl.bmp', 100, 100)
Bladex.ReadBitMap("shot5-ogl.bmp", "SHOT5")
hBmp=Raster.BmpHandle("SHOT5")
Raster.DrawBitmap(hBmp, 100, 100)
but don't see any visible effect so you must figure out yourself

when you do share your knowledge as it's something I am interested in too