Short term: TransparentBlt_() imported natively (so Import.. EndImport not needed)
Also AlphaBlend_() would be useful.
Longer term: a native DrawTransparentImage() based on this lightning-fast api.
TransparentBlt_()
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
TransparentBlt_()
BERESHEIT
-
- Enthusiast
- Posts: 215
- Joined: Sun Jan 04, 2004 3:38 am
- Location: Maryland
Yes but it's up to the programmer to check the OS version
and to apply the good code to the good OS.
Maybe a flag or two differents functions.
DrawTransparentImage(ImageID, x, y, #PB_Transparent_Blt)
DrawTransparentImage(ImageID, x, y, #PB_Transparent_Compatible)
DrawTransparentImage(ImageID, x, y)
DrawTransparentImageBlt(ImageID, x, y)
and to apply the good code to the good OS.
Maybe a flag or two differents functions.
DrawTransparentImage(ImageID, x, y, #PB_Transparent_Blt)
DrawTransparentImage(ImageID, x, y, #PB_Transparent_Compatible)
DrawTransparentImage(ImageID, x, y)
DrawTransparentImageBlt(ImageID, x, y)
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Who cares about anything older than Windows 98?White Eagle wrote:There would be a slight compatibility problem though as TransparentBlt_() is only supported on Windows 98 and newer.

I don't think anything should have to be compatible with Windows 95 and such, because it's just trash!
And yeah, I agree with the flags Flype.
I like logic, hence I dislike humans but love computers.
-
- Enthusiast
- Posts: 215
- Joined: Sun Jan 04, 2004 3:38 am
- Location: Maryland
Evidently Fred does, if you take a look at PB sometime you will see that he makes it compatible with Windows 95 and Windows NT 4, both of which were released before '98.Who cares about anything older than Windows 98?
Personally, I refuse to support anything older than Windows 2000. If what I make works on older stuff, fine. If not, I don't care.
Same for me. At my work, there's no more Win98 since about 2 years.White Eagle wrote:Personally, I refuse to support anything older than Windows 2000. If what I make works on older stuff, fine. If not, I don't care.
Because i decided it, and that's much easier for me now

No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
I work in a lab ; we have : DOS, Win95, Win NT4, Win 2K, Win XP, OS/2, MacOS, etc... because each machine has it's own (obsolete) control software and hardware.Flype wrote:Same for me. At my work, there's no more Win98 since about 2 years.White Eagle wrote:Personally, I refuse to support anything older than Windows 2000. If what I make works on older stuff, fine. If not, I don't care.
Because i decided it, and that's much easier for me now
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Yes i can understand, of course.
in some context, you have no choice.
And that's, of course, good that purebasic builtin-commands supports a maximum number of OS.
in some context, you have no choice.
And that's, of course, good that purebasic builtin-commands supports a maximum number of OS.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer