Rotate image fast? (wheel of fortune like)
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Hi,
I don't know why, but now it works with a transparent png.
(It is loaded without an error)
The parameter #PB_Sprite_AlphaBlending was not helpful.
When I add this, I didn't see the sprite anymore.
But ok. that's not a problem for me, since I normally don't do any
graphic stuff.
Best regards,
Bernd
I don't know why, but now it works with a transparent png.
(It is loaded without an error)
The parameter #PB_Sprite_AlphaBlending was not helpful.
When I add this, I didn't see the sprite anymore.
But ok. that's not a problem for me, since I normally don't do any
graphic stuff.
Best regards,
Bernd
I change line 29 to:
It's work now!
Code: Select all
OpenLibrary(0, "C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.0.0_x-ww_8d353f13\gdiplus.dll")
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
but then it will work on this single computer only.
find another way of opening the DLL correctly instead of using an absolute path.
seems that "WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.0.0_x-ww_8d353f13\"
is no standard path that is searched by default.
(what the helluva path is this anyway?)
shift a copy of the DLL to C:\WINDOWS\ and it should wark without path.
find another way of opening the DLL correctly instead of using an absolute path.
seems that "WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.0.0_x-ww_8d353f13\"
is no standard path that is searched by default.
(what the helluva path is this anyway?)
shift a copy of the DLL to C:\WINDOWS\ and it should wark without path.
oh... and have a nice day.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
sure.
none of both codes had a timer and/or was giving time free.
netmaestro used WindowEvent() without a Delay,
infratec used FlipBuffers() without Delay or a timer
that means, the code will run as-fast-as-run-can and fry the CPU, just normal.
to set time free, you have to use WaitWindowEvent(timeout) or a Delay(ms), then it is possible to lower CPU usage.
none of both codes had a timer and/or was giving time free.
netmaestro used WindowEvent() without a Delay,
infratec used FlipBuffers() without Delay or a timer
that means, the code will run as-fast-as-run-can and fry the CPU, just normal.
to set time free, you have to use WaitWindowEvent(timeout) or a Delay(ms), then it is possible to lower CPU usage.
oh... and have a nice day.
Re: Rotate image fast? (wheel of fortune like)
The code didn't work with PB 4.40 (x86, Windows; on Windows XP-SP3) until I changed the pseudotype of 'filename' from 'p-bstr' to 'p-unicode'
:

Code: Select all
Prototype GdipCreateBitmapFromFile(filename.p-unicode, *image)
Re: Rotate image fast? (wheel of fortune like)
Is there any way to save a rotated sprite to a file (and have it still be rotated)?