Page 1 of 1

TransparentBlt_()

Posted: Wed Jul 26, 2006 8:13 pm
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.

Posted: Wed Jul 26, 2006 9:03 pm
by White Eagle
There would be a slight compatibility problem though as TransparentBlt_() is only supported on Windows 98 and newer.

Posted: Wed Jul 26, 2006 11:35 pm
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)

Posted: Wed Jul 26, 2006 11:53 pm
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.

Posted: Thu Jul 27, 2006 9:40 am
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.

Posted: Thu Jul 27, 2006 2:23 pm
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:

Posted: Thu Jul 27, 2006 3:41 pm
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.

Posted: Thu Jul 27, 2006 4:27 pm
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.