| |
|
|
| Hello I have time whom subesquent demonstration code copies and the graphic adjusted! unfortunately I get only a access violation!
declare fxhandle1&, fxhandle2&, bytearray1&, bytearray2&, name$ fxhandle1&=LoadExtBmp(0,%hdc) lever 1: vain Bitmap produce name$=logo.bmp fxhandle2&=LoadExtBmp(addr(name$),%hdc) lever 2: Load image, z.B. 640x480 big CopyExtBmp(fxhandle1&,0,0,800,600,%HDC,0,0,0) Content the Profanfensters to lever 1 bytearray1&=InitExtFX(fxhandle1&) byte-aray To lever 1 produce bytearray2&=InitExtFX(fxhandle2&) byte-aray To lever 2 produce
WhileLoop 100 SemiTrans(%HDC,0,0,bytearray2&,bytearray1&,&loop) the Image in 100 stepped into Wend Hintergrundgrafik eingeblendet
FreeExtFX(bytearray1&) byte-aray 1 unlock FreeExtFX(bytearray2&) byte-aray 2 unlock FreeExtBmp(fxhandle1&) lever 1 unlock FreeExtBmp(fxhandle2&) lever 2 unlock
what make I only wrong?
Sascha |
|
|
| |
|
|
|
| Hello Sascha,
if a grafically function with two Bytearrays operates, then müßen both Bytearray but too same big his (see guide). this is with you not the case.
fxhandle1&=LoadExtBmo(0,%HDC) an vain Bitmap the actually Windowsauflösung becomes laid out, means 1024x768 ???
fxhandle2&=LoadExtBmp(addr(name$),%hdc) lever 2: Load image, z.B. 640x480 big (or is your dissolution only 640x480?)
CopyExtBmp(fxhandle1&,0,0,800,600,%HDC,0,0,0) Content the Profanfensters to lever 1 again others values ???
means, you mußt sure weg, the both Bytearray same big are, z.B. 800x600. use instead of LoadExtBmp(0,...) rather CreateExtBmp(...)
then works it too )
Greeting, Frank |
|
|
| |
|
|
|
| hi frank!
and this is with all effects so? means all functions The initextfx need!?
Then me some klarer!
Sascha |
|
|
| |
|
|
|
| Hello Sascha,
very, the standing but too in the guide under InitExtFX(), and is indeed logical, if You two memory have, and the a change and the changed data into second memory write, and the memory is To small, circa any data To erfassen, write You naturally in undefinierte Speicherbereiche, and this is never well, or...?
Greeting, Frank |
|
|
| |
|
|
|
| Yes the is correct! having The guide not correctly. red!
means I have Yes not so much anhnung of grafikformaten but can it really then too his the different graphic-qualities (truecolor etc.) Problems make? |
|
|
| |
|
|
|
| Hi,
No, different Grafikformate play no role, only The wide the Bitmaps must saponaceous through be divisible by four. Intern operates ProSpeed always with 24 bit and geräteunabhängigen HDCs.
Greeting, Frank |
|
|
| |
|
|
|
| Hello,
means so integrally klappen wants it immernoch not!
I have subesquent code: CompileMarkSeparationdeclare fxhandle1&, fxhandle2&, bytearray1&, bytearray2&, name$, logo&
fxhandle1&=CreateExtBmp(%hdc,800,600)
fxhandle2&=CreateExtBmp(%hdc,800,600)
name$="pong3dlogo.gif"
logo&=LoadExtImage(addr(name$),%hdc) Handle 2: Bild laden, z.B. 640x480 groß
CopyExtBmp(fxhandle1&,0,0,800,600,%HDC,0,0,0) Inhalt des Profanfensters nach Handle 1
CopyExtBmp(fxhandle2&,0,0,800,200,logo&,0,0,0)
bytearray1&=InitExtFX(fxhandle1&) Byte-Array zu Handle 1 erzeugen
bytearray2&=InitExtFX(fxhandle2&) Byte-Array zu Handle 2 erzeugen
WhileLoop 100
SemiTrans(%HDC,0,0,bytearray1&,bytearray2&,&loop) Das Bild wird in 100 Schritten in die
Wend Hintergrundgrafik eingeblendet
FreeExtFX(bytearray1&) Byte-Array 1 wieder freigeben
FreeExtFX(bytearray2&) Byte-Array 2 wieder freigeben
FreeExtBmp(logo&)
FreeExtBmp(fxhandle1&) Handle 1 wieder freigeben
FreeExtBmp(fxhandle2&) Handle 2 wieder | 04/19/04 ▲ | |
|
|
|
|
| Hi Sascha,
two items Have I in your code discover:
1.) LoadExtImage() has only one parameter, not two !!! 2.) fxhandle2& is go ahead one part with Grafikdaten filled been, you can't of it go out, the new initierte Grafikflächen always Black are, sometimes find itself yet old data therein...!?
Probier the time. Greeting, Frank |
|
|
| |
|
|