TransparentBlt_()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

TransparentBlt_()

Post by netmaestro »

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.
BERESHEIT
White Eagle
Enthusiast
Enthusiast
Posts: 215
Joined: Sun Jan 04, 2004 3:38 am
Location: Maryland

Post by White Eagle »

There would be a slight compatibility problem though as TransparentBlt_() is only supported on Windows 98 and newer.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

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)
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
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

White Eagle wrote:There would be a slight compatibility problem though as TransparentBlt_() is only supported on Windows 98 and newer.
Who cares about anything older than Windows 98? :P
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.
White Eagle
Enthusiast
Enthusiast
Posts: 215
Joined: Sun Jan 04, 2004 3:38 am
Location: Maryland

Post by White Eagle »

Who cares about anything older than Windows 98?
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.

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.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

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.
Same for me. At my work, there's no more Win98 since about 2 years.
Because i decided it, and that's much easier for me now :lol:
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
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Flype wrote:
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.
Same for me. At my work, there's no more Win98 since about 2 years.
Because i decided it, and that's much easier for me now :lol:
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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

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.
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
Post Reply